|
||||
File indexing completed on 2025-01-18 09:35:35
0001 // Boost.Geometry 0002 0003 // Copyright (c) 2014-2021, Oracle and/or its affiliates. 0004 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle 0005 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle 0006 0007 // Licensed under the Boost Software License version 1.0. 0008 // http://www.boost.org/users/license.html 0009 0010 #ifndef BOOST_GEOMETRY_ITERATORS_DETAIL_HAS_ONE_ELEMENT_HPP 0011 #define BOOST_GEOMETRY_ITERATORS_DETAIL_HAS_ONE_ELEMENT_HPP 0012 0013 0014 namespace boost { namespace geometry { namespace detail 0015 { 0016 0017 0018 // free function to test if an iterator range has a single element 0019 template <typename Iterator> 0020 inline bool has_one_element(Iterator first, Iterator last) 0021 { 0022 return first != last && ++first == last; 0023 } 0024 0025 0026 }}} // namespace boost::geometry::detail 0027 0028 0029 #endif // BOOST_GEOMETRY_ITERATORS_DETAIL_HAS_ONE_ELEMENT_HPP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |