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

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

#include <add_pointer.hpp>

Public Types

using type = typename decltype(details::try_add_pointer< T >(0))::type
 provides the member typedef "type"
 

Detailed Description

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

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

#include <bsl/is_same.hpp>
#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_add_pointer_overview() noexcept
{
if (bsl::is_same<bsl::add_pointer_t<bool>, bool *>::value) {
bsl::print() << "success\n";
}
}
}
Template Parameters
Tthe type to add an pointer to

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