![]() |
NEURON
|
Token whose lifetime manages the frozen state of a container. More...
#include <soa_container.hpp>
Public Member Functions | |
constexpr | state_token (state_token const &other) |
Copy a token, incrementing the frozen count of the underlying container. More... | |
constexpr state_token & | operator= (state_token const &)=delete |
Copy assignment. More... | |
~state_token () | |
Destroy a token, decrementing the frozen count of the underlying container. More... | |
Private Member Functions | |
constexpr | state_token (Container &container) |
Private Attributes | |
Container * | m_container {} |
Friends | |
template<typename , typename... > | |
struct | soa |
Token whose lifetime manages the frozen state of a container.
Because this cannot be defaulted constructed or moved, it cannot reach an empty/invalid state.
Definition at line 629 of file soa_container.hpp.
|
inlineconstexpr |
Copy a token, incrementing the frozen count of the underlying container.
Definition at line 633 of file soa_container.hpp.
|
inline |
Destroy a token, decrementing the frozen count of the underlying container.
Definition at line 649 of file soa_container.hpp.
|
inlineconstexprprivate |
Definition at line 657 of file soa_container.hpp.
|
constexprdelete |
Copy assignment.
Explicitly deleted to avoid an implicit version with the wrong semantics.
Definition at line 656 of file soa_container.hpp.
|
private |
Definition at line 659 of file soa_container.hpp.