mirror of
https://github.com/boostorg/type_traits.git
synced 2026-01-24 18:32:36 +00:00
23 lines
680 B
Plaintext
23 lines
680 B
Plaintext
[/
|
|
Copyright 2010 John Maddock.
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
(See accompanying file LICENSE_1_0.txt or copy at
|
|
http://www.boost.org/LICENSE_1_0.txt).
|
|
]
|
|
|
|
[/===================================================================]
|
|
[section:conditional conditional]
|
|
[/===================================================================]
|
|
|
|
|
|
__header ` #include <boost/type_traits/conditional.hpp>` or ` #include <boost/type_traits.hpp>`
|
|
|
|
namespace boost {
|
|
template <bool B, class T, class U> struct __conditional;
|
|
}
|
|
|
|
If B is true, the member typedef type shall equal T. If B is false, the member typedef type shall equal U.
|
|
|
|
[endsect]
|
|
|