1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2010-2013 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2012-2013 Adam Wulkiewicz, Lodz, Poland.
5 // Use, modification and distribution is subject to the Boost Software License,
6 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
10 #ifndef PARAMETER_PREDICATES_HPP
11 #define PARAMETER_PREDICATES_HPP
16 #include <doxygen_elements.hpp>
19 // Predicate for std::find_if
22 par_by_name(std::string const& n)
26 inline bool operator()(parameter const& p)
28 return p.name == m_name;
35 // Predicate for std::find_if
38 par_by_type(std::string const& n)
42 inline bool operator()(parameter const& p)
44 return p.type == m_type;
51 template <typename Element>
54 inline bool operator()(Element const& left, Element const& right)
56 return left.line < right.line;
61 #endif // PARAMETER_PREDICATES_HPP