A const‐propagating wrapper around a pointer‐like type.
Synopsis
Declared in <folly/lang/PropagateConst.h>
template<typename Pointer>
class propagate_const;
Description
Mimics std::experimental::propagate_const from C++ Library Fundamentals TS v2: accessing the pointee through a const wrapper yields const access.
Type Aliases
Name |
Description |
The type of the object pointed to by |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
|
|
Dereference operators |
|
Member access operators |
|
Swap the underlying pointer with another wrapper's. |
|
Test whether the underlying pointer is non‐null. |
|
Implicitly convert to a const pointer to the pointed‐to object. |
|
Implicitly convert to a mutable pointer to the pointed‐to object. |
Friends
Name |
Description |
|
A const‐propagating wrapper around a pointer‐like type. |
Grants the const free |
|
Grants the free |
Non-Member Functions
Name |
Description |
Access the underlying pointer stored in a const wrapper. |
|
Access the underlying pointer stored in a mutable wrapper. |
|
Three‐way‐compare two wrappers by their underlying pointers. |
|
Three‐way‐compare a wrapper against a value of another type. |
|
Equality‐compare a wrapper against |
|
Equality‐compare two wrappers by their underlying pointers. |
|
Equality‐compare a wrapper against a value of another type. |
|
Swap the underlying pointers of two wrappers. |
Created with MrDocs