My Project
Public Types | List of all members
bsl::add_const< T > Class Template Referencefinal

Provides the member typedef type which is the same as T, except that a topmost const qualifier is added. More...

#include <add_const.hpp>

Public Types

using type = T const
 provides the member typedef "type"
 

Detailed Description

template<typename T>
class bsl::add_const< T >

Provides the member typedef type which is the same as T, except that a topmost const qualifier is added.

#include <bsl/is_same.hpp>
#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_add_const_overview() noexcept
{
if (bsl::is_same<bsl::add_const_t<bool>, bool const>::value) {
bsl::print() << "success\n";
}
}
}
Template Parameters
Tthe type to add a const qualifier to

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