File indexing completed on 2025-01-18 09:38:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_INTERPROCESS_NULL_INDEX_HPP
0011 #define BOOST_INTERPROCESS_NULL_INDEX_HPP
0012
0013 #ifndef BOOST_CONFIG_HPP
0014 # include <boost/config.hpp>
0015 #endif
0016 #
0017 #if defined(BOOST_HAS_PRAGMA_ONCE)
0018 # pragma once
0019 #endif
0020
0021 #include <boost/interprocess/detail/config_begin.hpp>
0022 #include <boost/interprocess/detail/workaround.hpp>
0023
0024 #include <boost/interprocess/offset_ptr.hpp>
0025
0026
0027
0028
0029
0030 namespace boost {
0031 namespace interprocess {
0032
0033
0034
0035
0036 template <class MapConfig>
0037 class null_index
0038 {
0039 #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
0040 typedef typename MapConfig::
0041 segment_manager_base segment_manager_base;
0042 #endif
0043
0044 public:
0045 typedef int * iterator;
0046 typedef const int * const_iterator;
0047
0048
0049
0050 const_iterator begin() const
0051 { return const_iterator(0); }
0052
0053
0054
0055 iterator begin()
0056 { return iterator(0); }
0057
0058
0059
0060 const_iterator end() const
0061 { return const_iterator(0); }
0062
0063
0064
0065 iterator end()
0066 { return iterator(0); }
0067
0068
0069 null_index(segment_manager_base *){}
0070 };
0071
0072 }}
0073
0074 #include <boost/interprocess/detail/config_end.hpp>
0075
0076 #endif