Please check out the library's documentation to learn more.
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.
The full documentation is available on boost.org.
| Master | Develop | |
|---|---|---|
| Travis | ||
| Appveyor |
Bugs and feature requests can be reported through the Gitub issue tracker (see open issues and closed issues).
You can submit your changes through a pull request.
There is no mailing-list specific to Boost TypeTraits, although you can use the general-purpose Boost mailing-list using the tag [type_traits].
Clone the whole boost project, which includes the individual Boost projects as submodules (see boost+git doc):
git clone https://github.com/boostorg/boost
cd boost
git submodule update --init
The Boost TypeTraits Library is located in libs/type_traits/.
First, make sure you are in libs/type_traits/test.
You can either run all the tests listed in Jamfile.v2 or run a single test:
../../../b2 <- run all tests
../../../b2 config_info <- single test
<h1>Boost TypeTraits Library</h1> <p>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?</p> <p>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.</p> <p>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.</p> <p>The full documentation is available on <a href="http://www.boost.org/doc/libs/release/libs/type_traits/index.html">boost.org</a>.</p> <table> <thead> <tr> <th align="left"></th> <th align="left">Master</th> <th align="left">Develop</th> </tr> </thead> <tbody> <tr> <td align="left">Travis</td> <td align="left"><a href="https://travis-ci.org/boostorg/type_traits"><img src="https://travis-ci.org/boostorg/type_traits.svg?branch=master" alt="Build Status" /></a></td> <td align="left"><a href="https://travis-ci.org/boostorg/type_traits"><img src="https://travis-ci.org/boostorg/type_traits.svg" alt="Build Status" /></a></td> </tr> <tr> <td align="left">Appveyor</td> <td align="left"><a href="https://ci.appveyor.com/project/jzmaddock/type-traits/branch/master"><img src="https://ci.appveyor.com/api/projects/status/lwjqu4087qiolje8/branch/master?svg=true" alt="Build status" /></a></td> <td align="left"><a href="https://ci.appveyor.com/project/jzmaddock/type-traits/branch/develop"><img src="https://ci.appveyor.com/api/projects/status/lwjqu4087qiolje8/branch/develop?svg=true" alt="Build status" /></a></td> </tr> </tbody> </table> <h2>Support, bugs and feature requests</h2> <p>Bugs and feature requests can be reported through the <a href="https://github.com/boostorg/type_traits/issues">Gitub issue tracker</a> (see <a href="https://github.com/boostorg/type_traits/issues">open issues</a> and <a href="https://github.com/boostorg/type_traits/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed">closed issues</a>).</p> <p>You can submit your changes through a <a href="https://github.com/boostorg/type_traits/pulls">pull request</a>.</p> <p>There is no mailing-list specific to Boost TypeTraits, although you can use the general-purpose Boost <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users">mailing-list</a> using the tag [type_traits].</p> <h2>Development</h2> <p>Clone the whole boost project, which includes the individual Boost projects as submodules (<a href="https://github.com/boostorg/boost/wiki/Getting-Started">see boost+git doc</a>):</p> <pre class="highlightjs highlight"><code class="language- hljs">git clone https://github.com/boostorg/boost cd boost git submodule update --init </code></pre> <p>The Boost TypeTraits Library is located in <code>libs/type_traits/</code>.</p> <h3>Running tests</h3> <p>First, make sure you are in <code>libs/type_traits/test</code>. You can either run all the tests listed in <code>Jamfile.v2</code> or run a single test:</p> <pre class="highlightjs highlight"><code class="language- hljs">../../../b2 <- run all tests ../../../b2 config_info <- single test </code></pre>
<h1>Boost TypeTraits Library</h1> <p>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?</p> <p>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.</p> <p>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.</p> <p>The full documentation is available on <a href="http://www.boost.org/doc/libs/release/libs/type_traits/index.html">boost.org</a>.</p> <table> <thead> <tr> <th align="left"></th> <th align="left">Master</th> <th align="left">Develop</th> </tr> </thead> <tbody> <tr> <td align="left">Travis</td> <td align="left"><a href="https://travis-ci.org/boostorg/type_traits"><img src="https://travis-ci.org/boostorg/type_traits.svg?branch=master" alt="Build Status" /></a></td> <td align="left"><a href="https://travis-ci.org/boostorg/type_traits"><img src="https://travis-ci.org/boostorg/type_traits.svg" alt="Build Status" /></a></td> </tr> <tr> <td align="left">Appveyor</td> <td align="left"><a href="https://ci.appveyor.com/project/jzmaddock/type-traits/branch/master"><img src="https://ci.appveyor.com/api/projects/status/lwjqu4087qiolje8/branch/master?svg=true" alt="Build status" /></a></td> <td align="left"><a href="https://ci.appveyor.com/project/jzmaddock/type-traits/branch/develop"><img src="https://ci.appveyor.com/api/projects/status/lwjqu4087qiolje8/branch/develop?svg=true" alt="Build status" /></a></td> </tr> </tbody> </table> <h2>Support, bugs and feature requests</h2> <p>Bugs and feature requests can be reported through the <a href="https://github.com/boostorg/type_traits/issues">Gitub issue tracker</a> (see <a href="https://github.com/boostorg/type_traits/issues">open issues</a> and <a href="https://github.com/boostorg/type_traits/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed">closed issues</a>).</p> <p>You can submit your changes through a <a href="https://github.com/boostorg/type_traits/pulls">pull request</a>.</p> <p>There is no mailing-list specific to Boost TypeTraits, although you can use the general-purpose Boost <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users">mailing-list</a> using the tag [type_traits].</p> <h2>Development</h2> <p>Clone the whole boost project, which includes the individual Boost projects as submodules (<a href="https://github.com/boostorg/boost/wiki/Getting-Started">see boost+git doc</a>):</p> <pre class="highlightjs highlight"><code class="language- hljs">git clone https://github.com/boostorg/boost cd boost git submodule update --init </code></pre> <p>The Boost TypeTraits Library is located in <code>libs/type_traits/</code>.</p> <h3>Running tests</h3> <p>First, make sure you are in <code>libs/type_traits/test</code>. You can either run all the tests listed in <code>Jamfile.v2</code> or run a single test:</p> <pre class="highlightjs highlight"><code class="language- hljs">../../../b2 <- run all tests ../../../b2 config_info <- single test </code></pre>