Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:53

0001 /* Copyright 2006-2008 Joaquin M Lopez Munoz.
0002  * Distributed under the Boost Software License, Version 1.0.
0003  * (See accompanying file LICENSE_1_0.txt or copy at
0004  * http://www.boost.org/LICENSE_1_0.txt)
0005  *
0006  * See http://www.boost.org/libs/flyweight for library home page.
0007  */
0008 
0009 #ifndef BOOST_FLYWEIGHT_NO_TRACKING_HPP
0010 #define BOOST_FLYWEIGHT_NO_TRACKING_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/flyweight/no_tracking_fwd.hpp>
0018 #include <boost/flyweight/tracking_tag.hpp>
0019 
0020 /* Null tracking policy: elements are never erased from the factory.
0021  */
0022 
0023 namespace boost{
0024 
0025 namespace flyweights{
0026 
0027 struct no_tracking:tracking_marker
0028 {
0029   struct entry_type
0030   {
0031     template<typename Value,typename Key>
0032     struct apply{typedef Value type;};
0033   };
0034 
0035   struct handle_type
0036   {
0037     template<typename Handle,typename TrackingHelper>
0038     struct apply{typedef Handle type;};
0039   };
0040 };
0041 
0042 } /* namespace flyweights */
0043 
0044 } /* namespace boost */
0045 
0046 #endif