Describes an immutable object. More...
Public Member Functions | |
| template<typename... Args> | |
| immutable_shared (Args &&... args) | |
| immutable_shared (immutable_shared const &)=default | |
| immutable_shared (immutable_shared &&)=default | |
| operator T const & (void) const noexcept | |
| T const & | get (void) const noexcept |
| long | use_count (void) const |
| bool | unique (void) const |
Public Types | |
| typedef T | element_type |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename T , typename... Args> | |
| immutable_shared< T > | make_immutable_shared (Args &&... args) |
Constructs an immutable object of type T. More... | |
Describes an immutable object.
| T | Object type. |
Immutable objects may be passed by reference when communication happens in shared memory. The object can never be mutated and it is deleted when the last immutable_shared is destroyed.
Locations that are on shared memory may have a single object accessible through their immutable_shared. Locations that are on different address spaces are guaranteed to have distinct copies of the object.
1.8.13