annotate DEPENDENCIES/generic/include/boost/flyweight/intermodule_holder.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 /* Copyright 2006-2011 Joaquin M Lopez Munoz.
Chris@16 2 * Distributed under the Boost Software License, Version 1.0.
Chris@16 3 * (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 4 * http://www.boost.org/LICENSE_1_0.txt)
Chris@16 5 *
Chris@16 6 * See http://www.boost.org/libs/flyweight for library home page.
Chris@16 7 */
Chris@16 8
Chris@16 9 #ifndef BOOST_FLYWEIGHT_INTERMODULE_HOLDER_HPP
Chris@16 10 #define BOOST_FLYWEIGHT_INTERMODULE_HOLDER_HPP
Chris@16 11
Chris@101 12 #if defined(_MSC_VER)
Chris@16 13 #pragma once
Chris@16 14 #endif
Chris@16 15
Chris@16 16 #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
Chris@16 17 #include <boost/flyweight/holder_tag.hpp>
Chris@16 18 #include <boost/flyweight/intermodule_holder_fwd.hpp>
Chris@16 19 #include <boost/interprocess/detail/intermodule_singleton.hpp>
Chris@16 20 #include <boost/mpl/aux_/lambda_support.hpp>
Chris@16 21
Chris@16 22 /* intermodule_holder_class guarantees a unique instance across all dynamic
Chris@16 23 * modules of a program.
Chris@16 24 */
Chris@16 25
Chris@16 26 namespace boost{
Chris@16 27
Chris@16 28 namespace flyweights{
Chris@16 29
Chris@16 30 template<typename C>
Chris@16 31 struct intermodule_holder_class:
Chris@16 32 interprocess::ipcdetail::intermodule_singleton<C,true>,
Chris@16 33 holder_marker
Chris@16 34 {
Chris@16 35 typedef intermodule_holder_class type;
Chris@16 36 BOOST_MPL_AUX_LAMBDA_SUPPORT(1,intermodule_holder_class,(C))
Chris@16 37 };
Chris@16 38
Chris@16 39 /* intermodule_holder_class specifier */
Chris@16 40
Chris@16 41 struct intermodule_holder:holder_marker
Chris@16 42 {
Chris@16 43 template<typename C>
Chris@16 44 struct apply
Chris@16 45 {
Chris@16 46 typedef intermodule_holder_class<C> type;
Chris@16 47 };
Chris@16 48 };
Chris@16 49
Chris@16 50 } /* namespace flyweights */
Chris@16 51
Chris@16 52 } /* namespace boost */
Chris@16 53
Chris@16 54 #endif