fix doc example typo
[boost.git] / boost / flyweight / no_tracking.hpp
blob1433d6dac0c90b572e750006cffd0dceffc4dad1
1 /* Copyright 2006-2008 Joaquin M Lopez Munoz.
2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
6 * See http://www.boost.org/libs/flyweight for library home page.
7 */
9 #ifndef BOOST_FLYWEIGHT_NO_TRACKING_HPP
10 #define BOOST_FLYWEIGHT_NO_TRACKING_HPP
12 #if defined(_MSC_VER)&&(_MSC_VER>=1200)
13 #pragma once
14 #endif
16 #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
17 #include <boost/flyweight/no_tracking_fwd.hpp>
18 #include <boost/flyweight/tracking_tag.hpp>
20 /* Null tracking policy: elements are never erased from the factory.
23 namespace boost{
25 namespace flyweights{
27 struct no_tracking:tracking_marker
29 struct entry_type
31 template<typename Value,typename Key>
32 struct apply{typedef Value type;};
35 struct handle_type
37 template<typename Handle,typename TrackingHelper>
38 struct apply{typedef Handle type;};
42 } /* namespace flyweights */
44 } /* namespace boost */
46 #endif