struct
#include <rll/traits/pin.h>
pin Disallows copy and move operations for a type.
Useful for types that are not meant to be copied or moved.
Example usage:
struct my_type : rll::pin { // ... }; my_type t; auto t2 = t; // will not compile auto t3 = std::move(t); // will not compile
Base classes
- struct noncopyable
- Disallows copy operations for a type.
- struct nonmovable
- Disallows move operations for a type.
Derived classes
-
template <typename T>struct singleton
- Singleton pattern trait.