diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2022-08-30 14:40:56 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2022-08-30 14:40:56 +0300 |
commit | 80a7a34cae24c373311a62eee4324519719a0587 (patch) | |
tree | 87be0a22665d760c00c4597b3c141db091f63e0a /contrib/restricted/boost/range | |
parent | 810fc0836b07bb8591a0e8a693e600eab2795a8b (diff) | |
download | ydb-80a7a34cae24c373311a62eee4324519719a0587.tar.gz |
Update contrib/restricted/boost/spirit to 1.80.0
Diffstat (limited to 'contrib/restricted/boost/range')
5 files changed, 0 insertions, 399 deletions
diff --git a/contrib/restricted/boost/range/include/boost/range.hpp b/contrib/restricted/boost/range/include/boost/range.hpp deleted file mode 100644 index 179ae22492..0000000000 --- a/contrib/restricted/boost/range/include/boost/range.hpp +++ /dev/null @@ -1,23 +0,0 @@ -// Boost.Range library -// -// Copyright Thorsten Ottosen 2003-2004. Use, modification and -// distribution is subject to 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) -// -// For more information, see http://www.boost.org/libs/range/ -// - -#ifndef BOOST_RANGE_HPP_27_07_04 -#define BOOST_RANGE_HPP_27_07_04 - -#if defined(_MSC_VER) -# pragma once -#endif - -#include <boost/range/functions.hpp> -#include <boost/range/metafunctions.hpp> -#include <boost/range/iterator_range.hpp> -#include <boost/range/sub_range.hpp> - -#endif diff --git a/contrib/restricted/boost/range/include/boost/range/category.hpp b/contrib/restricted/boost/range/include/boost/range/category.hpp deleted file mode 100644 index f5431adf2e..0000000000 --- a/contrib/restricted/boost/range/include/boost/range/category.hpp +++ /dev/null @@ -1,29 +0,0 @@ -// Boost.Range library -// -// Copyright Thorsten Ottosen 2003-2006. Use, modification and -// distribution is subject to 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) -// -// For more information, see http://www.boost.org/libs/range/ -// - -#ifndef BOOST_RANGE_CATEGORY_HPP -#define BOOST_RANGE_CATEGORY_HPP - -#if defined(_MSC_VER) -# pragma once -#endif - -#include <boost/range/config.hpp> -#include <boost/range/iterator.hpp> -#include <boost/iterator/iterator_traits.hpp> - -namespace boost -{ - template< class T > - struct range_category : iterator_category< typename range_iterator<T>::type > - { }; -} - -#endif diff --git a/contrib/restricted/boost/range/include/boost/range/metafunctions.hpp b/contrib/restricted/boost/range/include/boost/range/metafunctions.hpp deleted file mode 100644 index 7ca2f93e38..0000000000 --- a/contrib/restricted/boost/range/include/boost/range/metafunctions.hpp +++ /dev/null @@ -1,28 +0,0 @@ -// Boost.Range library -// -// Copyright Thorsten Ottosen 2003-2004. Use, modification and -// distribution is subject to 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) -// -// For more information, see http://www.boost.org/libs/range/ -// - -#ifndef BOOST_RANGE_METAFUNCTIONS_HPP -#define BOOST_RANGE_METAFUNCTIONS_HPP - -#if defined(_MSC_VER) -# pragma once -#endif - -#include <boost/range/iterator.hpp> -#include <boost/range/has_range_iterator.hpp> -#include <boost/range/reverse_iterator.hpp> -#include <boost/range/value_type.hpp> -#include <boost/range/size_type.hpp> -#include <boost/range/difference_type.hpp> -#include <boost/range/category.hpp> -#include <boost/range/reference.hpp> -#include <boost/range/pointer.hpp> - -#endif diff --git a/contrib/restricted/boost/range/include/boost/range/pointer.hpp b/contrib/restricted/boost/range/include/boost/range/pointer.hpp deleted file mode 100644 index b1e8dc5c5e..0000000000 --- a/contrib/restricted/boost/range/include/boost/range/pointer.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// Boost.Range library -// -// Copyright Thorsten Ottosen 2003-2006. Use, modification and -// distribution is subject to 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) -// -// For more information, see http://www.boost.org/libs/range/ -// - -#ifndef BOOST_RANGE_POINTER_TYPE_HPP -#define BOOST_RANGE_POINTER_TYPE_HPP - -#if defined(_MSC_VER) -# pragma once -#endif - -#include <boost/range/config.hpp> -#include <boost/range/iterator.hpp> -#include <boost/iterator/iterator_traits.hpp> - -namespace boost -{ - template< class T > - struct range_pointer - : iterator_pointer< BOOST_DEDUCED_TYPENAME range_iterator<T>::type > - { }; -} - -#endif diff --git a/contrib/restricted/boost/range/include/boost/range/sub_range.hpp b/contrib/restricted/boost/range/include/boost/range/sub_range.hpp deleted file mode 100644 index 97a9f0fcf5..0000000000 --- a/contrib/restricted/boost/range/include/boost/range/sub_range.hpp +++ /dev/null @@ -1,289 +0,0 @@ -// Boost.Range library -// -// Copyright Neil Groves 2009. -// Copyright Thorsten Ottosen 2003-2004. Use, modification and -// distribution is subject to 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) -// -// For more information, see http://www.boost.org/libs/range/ -// - -#ifndef BOOST_RANGE_SUB_RANGE_HPP -#define BOOST_RANGE_SUB_RANGE_HPP - -#include <boost/detail/workaround.hpp> - -#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500)) - #pragma warning( push ) - #pragma warning( disable : 4996 ) -#endif - -#include <boost/range/config.hpp> -#include <boost/range/iterator_range.hpp> -#include <boost/range/value_type.hpp> -#include <boost/range/size_type.hpp> -#include <boost/range/difference_type.hpp> -#include <boost/range/reference.hpp> -#include <boost/range/algorithm/equal.hpp> -#include <boost/assert.hpp> -#include <boost/type_traits/is_reference.hpp> -#include <boost/type_traits/remove_reference.hpp> - -namespace boost -{ - namespace range_detail - { - -template<class ForwardRange, class TraversalTag> -class sub_range_base - : public iterator_range< - BOOST_DEDUCED_TYPENAME range_iterator<ForwardRange>::type - > -{ - typedef iterator_range< - BOOST_DEDUCED_TYPENAME range_iterator<ForwardRange>::type - > base; - -protected: - typedef BOOST_DEDUCED_TYPENAME base::iterator_range_ iterator_range_; - -public: - typedef BOOST_DEDUCED_TYPENAME range_value<ForwardRange>::type value_type; - typedef BOOST_DEDUCED_TYPENAME range_iterator<ForwardRange>::type iterator; - typedef BOOST_DEDUCED_TYPENAME range_iterator<const ForwardRange>::type const_iterator; - typedef BOOST_DEDUCED_TYPENAME range_difference<ForwardRange>::type difference_type; - typedef BOOST_DEDUCED_TYPENAME range_size<ForwardRange>::type size_type; - typedef BOOST_DEDUCED_TYPENAME range_reference<ForwardRange>::type reference; - typedef BOOST_DEDUCED_TYPENAME range_reference<const ForwardRange>::type const_reference; - - sub_range_base() - { - } - - template<class Iterator> - sub_range_base(Iterator first, Iterator last) - : base(first, last) - { - } - - reference front() - { - return base::front(); - } - - const_reference front() const - { - return base::front(); - } -}; - -template<class ForwardRange> -class sub_range_base<ForwardRange, bidirectional_traversal_tag> - : public sub_range_base<ForwardRange, forward_traversal_tag> -{ - typedef sub_range_base<ForwardRange, forward_traversal_tag> base; -public: - sub_range_base() - { - } - - template<class Iterator> - sub_range_base(Iterator first, Iterator last) - : base(first, last) - { - } - - BOOST_DEDUCED_TYPENAME base::reference back() - { - return base::back(); - } - - BOOST_DEDUCED_TYPENAME base::const_reference back() const - { - return base::back(); - } -}; - -template<class ForwardRange> -class sub_range_base<ForwardRange, random_access_traversal_tag> - : public sub_range_base<ForwardRange, bidirectional_traversal_tag> -{ - typedef sub_range_base<ForwardRange, bidirectional_traversal_tag> base; - -public: - sub_range_base() - { - } - - template<class Iterator> - sub_range_base(Iterator first, Iterator last) - : base(first, last) - { - } - - BOOST_DEDUCED_TYPENAME base::reference - operator[](BOOST_DEDUCED_TYPENAME base::difference_type n) - { - return this->begin()[n]; - } - - BOOST_DEDUCED_TYPENAME base::const_reference - operator[](BOOST_DEDUCED_TYPENAME base::difference_type n) const - { - return this->begin()[n]; - } -}; - - } // namespace range_detail - - template<class ForwardRange> - class sub_range - : public range_detail::sub_range_base< - ForwardRange, - BOOST_DEDUCED_TYPENAME iterator_traversal< - BOOST_DEDUCED_TYPENAME range_iterator<ForwardRange>::type - >::type - > - { - typedef BOOST_DEDUCED_TYPENAME range_iterator< - ForwardRange - >::type iterator_t; - - typedef range_detail::sub_range_base< - ForwardRange, - BOOST_DEDUCED_TYPENAME iterator_traversal< - BOOST_DEDUCED_TYPENAME range_iterator<ForwardRange>::type - >::type - > base; - - typedef BOOST_DEDUCED_TYPENAME base::impl impl; - - protected: - typedef BOOST_DEDUCED_TYPENAME base::iterator_range_ iterator_range_; - - private: - template<class Source> - struct is_compatible_range - : is_convertible< - BOOST_DEDUCED_TYPENAME mpl::eval_if< - has_range_iterator<Source>, - range_iterator<Source>, - mpl::identity<void> - >::type, - BOOST_DEDUCED_TYPENAME base::iterator - > - { - }; - - public: - sub_range() - { } - -#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500) ) - sub_range(const sub_range& r) - : base(impl::adl_begin(const_cast<base&>(static_cast<const base&>(r))), - impl::adl_end(const_cast<base&>(static_cast<const base&>(r)))) - { } -#else - sub_range(const sub_range& r) = default; -#endif - - template< class ForwardRange2 > - sub_range( - ForwardRange2& r, - BOOST_DEDUCED_TYPENAME ::boost::enable_if< - is_compatible_range<ForwardRange2> - >::type* = 0 - ) - : base(impl::adl_begin(r), impl::adl_end(r)) - { - } - - template< class ForwardRange2 > - sub_range( - const ForwardRange2& r, - BOOST_DEDUCED_TYPENAME ::boost::enable_if< - is_compatible_range<const ForwardRange2> - >::type* = 0 - ) - : base(impl::adl_begin(r), impl::adl_end(r)) - { - } - - BOOST_DEDUCED_TYPENAME base::const_iterator begin() const - { - return base::begin(); - } - - BOOST_DEDUCED_TYPENAME base::iterator begin() - { - return base::begin(); - } - - BOOST_DEDUCED_TYPENAME base::const_iterator end() const - { - return base::end(); - } - - BOOST_DEDUCED_TYPENAME base::iterator end() - { - return base::end(); - } - - template< class Iter > - sub_range( Iter first, Iter last ) : - base( first, last ) - { } - - template<class ForwardRange2> - BOOST_DEDUCED_TYPENAME ::boost::enable_if< - is_compatible_range<ForwardRange2>, - sub_range& - >::type - operator=(ForwardRange2& r) - { - iterator_range_::operator=( r ); - return *this; - } - - template<class ForwardRange2> - BOOST_DEDUCED_TYPENAME ::boost::enable_if< - is_compatible_range<const ForwardRange2>, - sub_range& - >::type - operator=( const ForwardRange2& r ) - { - iterator_range_::operator=( r ); - return *this; - } - - sub_range& operator=( const sub_range& r ) - { - iterator_range_::operator=( static_cast<const iterator_range_&>(r) ); - return *this; - } - - sub_range& advance_begin( - BOOST_DEDUCED_TYPENAME base::difference_type n) - { - std::advance(this->m_Begin, n); - return *this; - } - - sub_range& advance_end( - BOOST_DEDUCED_TYPENAME base::difference_type n) - { - std::advance(this->m_End, n); - return *this; - } - }; - -} // namespace 'boost' - -#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500)) - #pragma warning( pop ) -#endif - -#endif - |