flyweight.hpp
|
#include <functional>
#include <tuple>
#include <type_traits>
#include <unordered_map>
#include <utility>
Go to the source code of this file.
Classes | |
struct | flyweight::default_creator< T, Args > |
struct | flyweight::default_deleter< T > |
struct | flyweight::autorelease_value< T, Flyweight, ArgTuple > |
Value wrapper that releases it back to the owning flyweight upon destruction. More... | |
class | flyweight::flyweight< T, Args > |
class | flyweight::flyweight_refcounted< T, Args > |
Functions | |
template<typename Fn , typename... Args> | |
auto | flyweight::detail::apply (Fn &&f, std::tuple< Args... > &&t) |
Single header with a templated implementation of the Flyweight design pattern
Example of asset management using flyweight objects: