File indexing completed on 2025-03-13 08:38:35
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_FLYWEIGHT_FACTORY_TAG_HPP
0010 #define BOOST_FLYWEIGHT_FACTORY_TAG_HPP
0011
0012 #if defined(_MSC_VER)
0013 #pragma once
0014 #endif
0015
0016 #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
0017 #include <boost/parameter/parameters.hpp>
0018 #include <boost/type_traits/is_base_and_derived.hpp>
0019
0020 namespace boost{
0021
0022 namespace flyweights{
0023
0024
0025
0026
0027
0028
0029
0030 struct factory_marker{};
0031
0032 template<typename T>
0033 struct is_factory:is_base_and_derived<factory_marker,T>
0034 {};
0035
0036 template<typename T=parameter::void_>
0037 struct factory:parameter::template_keyword<factory<>,T>
0038 {};
0039
0040 }
0041
0042 }
0043
0044 #endif