Templates for fundamental properties of types
The Boost type-traits library contains a set of very specific traits classes, each of which encapsulate a single trait from the C++ type system; for example, is a type a pointer or a reference type? Or does a type have a trivial constructor, or a const-qualifier?
The type-traits classes share a unified design: each class inherits from the type true_type if the type has the specified property and inherits from false_type otherwise.
The type-traits library also contains a set of classes that perform a specific transformation on a type; for example, they can remove a top-level const or volatile qualifier from a type. Each class that performs a transformation defines a single typedef-member type that is the result of the transformation.
... More
| license | BSL-1.0 |
|---|---|
| project | boost |
| url | github.com/boostorg/type_traits |
| doc-url | www.boost.org/doc/libs/1_87_0/libs/type_traits |
| boost-users@lists.boost.orgMailing list | |
| topics | C++Boost |
6 Versions
| version | 1.87.0 |
|---|---|
| repository | https://pkg.cppget.org/1/stable |
| depends | 2; libboost-config, libboost-static-assert |
| reviews | +1 |
| version | 1.85.0 |
|---|---|
| repository | https://pkg.cppget.org/1/stable |
| depends | 2; libboost-config, libboost-static-assert |
| reviews | +1 |
| version | 1.83.0 |
|---|---|
| repository | https://pkg.cppget.org/1/stable |
| depends | 2; libboost-config, libboost-static-assert |
| reviews | +1 |
| version | 1.81.0+1 |
|---|---|
| repository | https://pkg.cppget.org/1/legacy |
| depends | 2; libboost-config, libboost-static-assert |
| reviews | +1 |
| version | 1.78.0 |
|---|---|
| repository | https://pkg.cppget.org/1/legacy |
| depends | 2; libboost-config, libboost-static-assert |
| reviews | +1 |
| version | 1.77.0+1 |
|---|---|
| repository | https://pkg.cppget.org/1/legacy |
| depends | 2; libboost-config, libboost-static-assert |
| reviews | +1 |