Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:33:45

0001 //
0002 // is_contiguous_iterator.hpp
0003 // ~~~~~~~~~~~~~~~~~~~~~~~~~~
0004 //
0005 // Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009 //
0010 
0011 #ifndef BOOST_ASIO_IS_CONTIGUOUS_ITERATOR_HPP
0012 #define BOOST_ASIO_IS_CONTIGUOUS_ITERATOR_HPP
0013 
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
0017 
0018 #include <boost/asio/detail/config.hpp>
0019 #include <iterator>
0020 #include <boost/asio/detail/type_traits.hpp>
0021 
0022 #include <boost/asio/detail/push_options.hpp>
0023 
0024 namespace boost {
0025 namespace asio {
0026 
0027 /// The is_contiguous_iterator class is a traits class that may be used to
0028 /// determine whether a type is a contiguous iterator.
0029 template <typename T>
0030 struct is_contiguous_iterator :
0031 #if defined(BOOST_ASIO_HAS_STD_CONCEPTS) \
0032   || defined(GENERATING_DOCUMENTATION)
0033   integral_constant<bool, std::contiguous_iterator<T>>
0034 #else // defined(BOOST_ASIO_HAS_STD_CONCEPTS)
0035       //   || defined(GENERATING_DOCUMENTATION)
0036   is_pointer<T>
0037 #endif // defined(BOOST_ASIO_HAS_STD_CONCEPTS)
0038        //   || defined(GENERATING_DOCUMENTATION)
0039 {
0040 };
0041 
0042 } // namespace asio
0043 } // namespace boost
0044 
0045 #include <boost/asio/detail/pop_options.hpp>
0046 
0047 #endif // BOOST_ASIO_IS_CONTIGUOUS_ITERATOR_HPP