get_underlying overloads
Synopses
Declared in <folly/lang/PropagateConst.h>
Grants the free get_underlying access to the stored pointer.
template<>
constexpr
Pointer&
get_underlying(propagate_const& pc);
Grants the const free get_underlying access to the stored pointer.
template<>
constexpr
Pointer const&
get_underlying(propagate_const const& pc);
Access the underlying pointer stored in a mutable wrapper.
template<typename Pointer>
constexpr
Pointer&
get_underlying(propagate_const<Pointer>& obj);
Access the underlying pointer stored in a const wrapper.
template<typename Pointer>
constexpr
Pointer const&
get_underlying(propagate_const<Pointer> const& obj);
Return Value
-
A reference to the stored pointer.
-
A const reference to the stored pointer.
Parameters
Name |
Description |
pc |
The instance whose stored pointer is accessed. |
obj |
The wrapper to access. |
Created with MrDocs