File indexing completed on 2026-09-15 08:48:41
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 ">#
0018 #if defined(BOOST_HAS_PRAGMA_ONCE)
0019 # pragma once
0020 #endif
0021
0022 #include <boost/interprocess/detail/config_begin.hpp>
0023 #include <boost/interprocess/detail/workaround.hpp>
0024
0025 #include <boost/interprocess/offset_ptr.hpp>
0026
0027
0028
0029
0030
0031 namespace boost {
0032 namespace interprocess {
0033
0034
0035
0036
0037 template <class MapConfig>
0038 class null_index
0039 {
0040 #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
0041 typedef typename MapConfig::
0042 segment_manager_base segment_manager_base;
0043 #endif
0044
0045 public:
0046 typedef int * iterator;
0047 typedef const int * const_iterator;
0048
0049
0050
0051 const_iterator begin() const
0052 { return const_iterator(0); }
0053
0054
0055
0056 iterator begin()
0057 { return iterator(0); }
0058
0059
0060
0061 const_iterator end() const
0062 { return const_iterator(0); }
0063
0064
0065
0066 iterator end()
0067 { return iterator(0); }
0068
0069
0070 null_index(segment_manager_base *){}
0071 };
0072
0073 }}
0074
0075 #include <boost/interprocess/detail/config_end.hpp>
0076
0077 #endif