libcopp
2.2.0
|
#include <not_null.h>
Public Types | |
using | value_type = typename std::conditional< std::is_copy_constructible< T >::value, T, const T & >::type |
Public Member Functions | |
template<class U , class = typename std::enable_if<std::is_convertible<U, T>::value>::type> | |
constexpr | not_null (U &&u) |
template<class = typename std::enable_if<!std::is_same<std::nullptr_t, T>::value>::type> | |
constexpr | not_null (T u) |
template<class U , class = typename std::enable_if<std::is_convertible<U, T>::value>::type> | |
constexpr | not_null (const not_null< U > &other) |
not_null (const not_null &other)=default | |
not_null & | operator= (const not_null &other)=default |
constexpr value_type | get () const |
constexpr | operator T () const |
constexpr value_type | operator-> () const |
constexpr std::remove_pointer< value_type >::type | operator* () const |
not_null (std::nullptr_t)=delete | |
not_null & | operator= (std::nullptr_t)=delete |
not_null & | operator++ ()=delete |
not_null & | operator-- ()=delete |
not_null | operator++ (int)=delete |
not_null | operator-- (int)=delete |
not_null & | operator+= (std::ptrdiff_t)=delete |
not_null & | operator-= (std::ptrdiff_t)=delete |
void | operator[] (std::ptrdiff_t) const =delete |
Private Attributes | |
T | ptr_ |
Definition at line 66 of file not_null.h.
using gsl::not_null< T >::value_type = typename std::conditional<std::is_copy_constructible<T>::value, T, const T&>::type |
Definition at line 68 of file not_null.h.
|
inlineconstexpr |
Definition at line 74 of file not_null.h.
|
inlineconstexpr |
Definition at line 77 of file not_null.h.
|
inlineconstexpr |
Definition at line 80 of file not_null.h.
|
default |
|
delete |
|
inlineconstexpr |
Definition at line 84 of file not_null.h.
References gsl::not_null< T >::ptr_.
Referenced by gsl::not_null< T >::operator T(), gsl::not_null< T >::operator*(), and gsl::not_null< T >::operator->().
|
inlineconstexpr |
Definition at line 89 of file not_null.h.
References gsl::not_null< T >::get().
|
inlineconstexpr |
Definition at line 91 of file not_null.h.
References gsl::not_null< T >::get().
|
delete |
|
delete |
|
delete |
|
delete |
|
delete |
|
delete |
|
inlineconstexpr |
Definition at line 90 of file not_null.h.
References gsl::not_null< T >::get().
|
default |
Referenced by gsl::strict_not_null< T >::operator=().
|
delete |
|
delete |
|
private |
Definition at line 107 of file not_null.h.
Referenced by gsl::not_null< T >::get().