1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

range/numeric.hpp 追加

algorithm/* fix
This commit is contained in:
bolero-MURAKAMI 2011-10-21 20:36:19 +09:00
parent 510a265ea5
commit 42d73cc4d5
18 changed files with 407 additions and 131 deletions

View file

@ -6,6 +6,19 @@
namespace sprout {
namespace detail {
//
// equal_to
//
template<typename T>
class equal_to
: public std::binary_function<T, T, bool>
{
public:
SPROUT_CONSTEXPR bool operator()(T const& lhs, T const& rhs) const {
return lhs == rhs;
}
};
//
// less
//