14
14
#ifndef BOOST_ALGORITHM_IS_CLAMPED_HPP
15
15
#define BOOST_ALGORITHM_IS_CLAMPED_HPP
16
16
17
- #include < functional> // For std::less
17
+ #include < functional> // for std::less
18
18
#include < cassert>
19
19
20
20
#include < boost/type_traits/type_identity.hpp> // for boost::type_identity
21
21
22
22
namespace boost { namespace algorithm {
23
23
24
24
// / \fn is_clamped ( T const& val,
25
- // / typename boost::mpl::identity <T>::type const & lo,
26
- // / typename boost::mpl::identity <T>::type const & hi, Pred p )
25
+ // / typename boost::type_identity <T>::type const & lo,
26
+ // / typename boost::type_identity <T>::type const & hi, Pred p )
27
27
// / \returns true if value "val" is in the range [ lo, hi ]
28
28
// / using the comparison predicate p.
29
29
// / If p ( val, lo ) return false.
@@ -46,8 +46,8 @@ namespace boost { namespace algorithm {
46
46
}
47
47
48
48
// / \fn is_clamped ( T const& val,
49
- // / typename boost::mpl::identity <T>::type const & lo,
50
- // / typename boost::mpl::identity <T>::type const & hi)
49
+ // / typename boost::type_identity <T>::type const & lo,
50
+ // / typename boost::type_identity <T>::type const & hi)
51
51
// / \returns true if value "val" is in the range [ lo, hi ]
52
52
// / using operator < for comparison.
53
53
// / If the value is less than lo, return false.
0 commit comments