1) std::indirect
is a wrapper containing dynamically-allocated object with value-like semantics.
An std::indirect
object manages the lifetime of an owned object. An std::indirect
object can only have no owned object after it has been moved from, in this case it is valueless .
Every object of type std::indirect<T, Allocator>
uses an object of type Allocator
to allocate and free storage for the owned object as needed.
If a program declares an explicit or partial specialization of std::indirect
, the behavior is undefined.
T
may be an incomplete type. -If T
is one of the following types, the program is ill-formed:
Allocator
does not satisfy the requirements of Allocator, the program is ill-formed. -If std::allocator_traits<Allocator>::value_type is not the same type as T
, the program is ill-formed. [edit] Nested types [edit] Data members Member Description pointer
p
a pointer to the owned value
Allocator
alloc
the asociated allocator
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4