|
Embedded Template Library 1.0
|
Public Types | |
| typedef T | value_type |
| typedef T * | pointer |
| typedef const T * | const_pointer |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef pointer | underlying_type |
Public Member Functions | |
| ETL_CONSTEXPR14 | not_null (underlying_type ptr_) ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS) |
| ETL_CONSTEXPR14 | not_null (const etl::not_null< T * > &other) ETL_NOEXCEPT |
| Copy construct from a not_null pointer. | |
| ETL_CONSTEXPR14 not_null & | operator= (underlying_type rhs) ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS) |
| ETL_CONSTEXPR14 not_null & | operator= (const etl::not_null< T * > &rhs) ETL_NOEXCEPT |
| Assignment from a not_null. | |
| ETL_CONSTEXPR14 pointer | get () const ETL_NOEXCEPT |
| Gets the underlying pointer. | |
| ETL_CONSTEXPR14 | operator pointer () const ETL_NOEXCEPT |
| Implicit conversion to pointer. | |
| ETL_CONSTEXPR14 reference | operator* () const ETL_NOEXCEPT |
| Dereference operator. | |
| ETL_CONSTEXPR14 pointer | operator-> () const ETL_NOEXCEPT |
| Arrow operator. | |
|
inlineexplicit |
Constructs a not_null from a pointer. Asserts if the pointer is null.
|
inline |
Assignment from a pointer. Asserts if the pointer is null.