comparison DEPENDENCIES/generic/include/boost/interprocess/indexes/null_index.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
7 // See http://www.boost.org/libs/interprocess for documentation. 7 // See http://www.boost.org/libs/interprocess for documentation.
8 // 8 //
9 ////////////////////////////////////////////////////////////////////////////// 9 //////////////////////////////////////////////////////////////////////////////
10 #ifndef BOOST_INTERPROCESS_NULL_INDEX_HPP 10 #ifndef BOOST_INTERPROCESS_NULL_INDEX_HPP
11 #define BOOST_INTERPROCESS_NULL_INDEX_HPP 11 #define BOOST_INTERPROCESS_NULL_INDEX_HPP
12
13 #ifndef BOOST_CONFIG_HPP
14 # include <boost/config.hpp>
15 #endif
16 #
17 #if defined(BOOST_HAS_PRAGMA_ONCE)
18 # pragma once
19 #endif
12 20
13 #include <boost/interprocess/detail/config_begin.hpp> 21 #include <boost/interprocess/detail/config_begin.hpp>
14 #include <boost/interprocess/detail/workaround.hpp> 22 #include <boost/interprocess/detail/workaround.hpp>
15 23
16 #include <boost/interprocess/offset_ptr.hpp> 24 #include <boost/interprocess/offset_ptr.hpp>
26 //!used to save compilation time when 34 //!used to save compilation time when
27 //!named indexes are not needed. 35 //!named indexes are not needed.
28 template <class MapConfig> 36 template <class MapConfig>
29 class null_index 37 class null_index
30 { 38 {
31 /// @cond 39 #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
32 typedef typename MapConfig:: 40 typedef typename MapConfig::
33 segment_manager_base segment_manager_base; 41 segment_manager_base segment_manager_base;
34 /// @endcond 42 #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
35 43
36 public: 44 public:
37 typedef void * iterator; 45 typedef int * iterator;
38 typedef const void * const_iterator; 46 typedef const int * const_iterator;
39 47
40 //!begin() is equal 48 //!begin() is equal
41 //!to end() 49 //!to end()
42 const_iterator begin() const 50 const_iterator begin() const
43 { return const_iterator(0); } 51 { return const_iterator(0); }