C++ Actor Framework 1.0.0
|
A copy-on-write tuple implementation. More...
#include <cow_tuple.hpp>
Public Types | |
using | data_type = std::tuple<Ts...> |
Public Member Functions | |
cow_tuple (Ts... xs) | |
cow_tuple (cow_tuple &&)=default | |
cow_tuple (const cow_tuple &)=default | |
cow_tuple & | operator= (cow_tuple &&)=default |
cow_tuple & | operator= (const cow_tuple &)=default |
const data_type & | data () const noexcept |
Returns the managed tuple. | |
data_type & | unshared () |
Returns a mutable reference to the managed tuple, guaranteed to have a reference count of 1. | |
bool | unique () const noexcept |
Returns whether the reference count of the managed object is 1. | |
template<class... Us> | |
int | compare (const std::tuple< Us... > &other) const noexcept |
template<class... Us> | |
int | compare (const cow_tuple< Us... > &other) const noexcept |
Related Symbols | |
(Note that these are not member symbols.) | |
template<class... Ts> | |
cow_tuple< std::decay_t< Ts >... > | make_cow_tuple (Ts &&... xs) |
Creates a new copy-on-write tuple from given arguments. | |
template<size_t N, class... Ts> | |
auto | get (const cow_tuple< Ts... > &xs) -> decltype(std::get< N >(xs.data())) |
Convenience function for calling get<N>(xs.data()) . | |
A copy-on-write tuple implementation.