diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-16 20:29:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-24 16:40:04 +0300 |
commit | 8e761289a2446367267c6c0d9a26e734f0f78306 (patch) | |
tree | fb495d8c18801f271d124ee48731f10df396ca89 /cutl/details/boost/iterator.hpp | |
parent | 4c8104756b92b9fa16b3a725e8a6aa620dfd606e (diff) |
Get rid of legacy build systems and rename cutl/ to libcutl/
Diffstat (limited to 'cutl/details/boost/iterator.hpp')
-rw-r--r-- | cutl/details/boost/iterator.hpp | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/cutl/details/boost/iterator.hpp b/cutl/details/boost/iterator.hpp deleted file mode 100644 index 379b1d1..0000000 --- a/cutl/details/boost/iterator.hpp +++ /dev/null @@ -1,59 +0,0 @@ -// iterator.hpp workarounds for non-conforming standard libraries ---------// - -// (C) Copyright Beman Dawes 2000. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org/libs/utility for documentation. - -// Revision History -// 12 Jan 01 added <cstddef> for std::ptrdiff_t (Jens Maurer) -// 28 Jun 00 Workarounds to deal with known MSVC bugs (David Abrahams) -// 26 Jun 00 Initial version (Jeremy Siek) - -#ifndef BOOST_ITERATOR_HPP -#define BOOST_ITERATOR_HPP - -#include <iterator> -#include <cstddef> // std::ptrdiff_t -#include <cutl/details/boost/config.hpp> - -namespace cutl_details_boost -{ -# if defined(BOOST_NO_STD_ITERATOR) && !defined(BOOST_MSVC_STD_ITERATOR) - template <class Category, class T, - class Distance = std::ptrdiff_t, - class Pointer = T*, class Reference = T&> - struct iterator - { - typedef T value_type; - typedef Distance difference_type; - typedef Pointer pointer; - typedef Reference reference; - typedef Category iterator_category; - }; -# else - - // declare iterator_base in namespace detail to work around MSVC bugs which - // prevent derivation from an identically-named class in a different namespace. - namespace detail { - template <class Category, class T, class Distance, class Pointer, class Reference> -# if !defined(BOOST_MSVC_STD_ITERATOR) - struct iterator_base : std::iterator<Category, T, Distance, Pointer, Reference> {}; -# else - struct iterator_base : std::iterator<Category, T, Distance> - { - typedef Reference reference; - typedef Pointer pointer; - typedef Distance difference_type; - }; -# endif - } - - template <class Category, class T, class Distance = std::ptrdiff_t, - class Pointer = T*, class Reference = T&> - struct iterator : cutl_details_boost::detail::iterator_base<Category, T, Distance, Pointer, Reference> {}; -# endif -} // namespace cutl_details_boost - -#endif // BOOST_ITERATOR_HPP |