My Project
Public Types | List of all members
bsl::conditional< B, T, F > Class Template Referencefinal

Provides the member typedef type which is the same as T if B is true, otherwise is the same as F. More...

#include <conditional.hpp>

Public Types

using type = T
 provides the member typedef "type"
 

Detailed Description

template<bool B, typename T, typename F>
class bsl::conditional< B, T, F >

Provides the member typedef type which is the same as T if B is true, otherwise is the same as F.

#include <bsl/is_same.hpp>
#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_conditional_overview() noexcept
{
bsl::print() << "success\n";
}
bsl::print() << "success\n";
}
}
}
Template Parameters
Bthe conditional parameter
Tthe type to return if B is true
Fthe type to return if B is false

The documentation for this class was generated from the following file: