mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
fix less namespace and header
This commit is contained in:
parent
69a735f874
commit
bbeb2f1b4b
2 changed files with 4 additions and 10 deletions
|
@ -12,7 +12,7 @@
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <sprout/config.hpp>
|
#include <sprout/config.hpp>
|
||||||
#include <sprout/iterator/operation.hpp>
|
#include <sprout/iterator/operation.hpp>
|
||||||
#include HDR_FUNCTIONAL_SSCRISK_CEL_OR_SPROUT
|
#include <sprout/functional/less.hpp>
|
||||||
|
|
||||||
namespace sprout {
|
namespace sprout {
|
||||||
|
|
||||||
|
@ -35,10 +35,7 @@ namespace sprout {
|
||||||
template<typename ForwardIterator, typename T>
|
template<typename ForwardIterator, typename T>
|
||||||
inline SPROUT_CONSTEXPR ForwardIterator
|
inline SPROUT_CONSTEXPR ForwardIterator
|
||||||
lower_bound(ForwardIterator first, ForwardIterator last, T const& value) {
|
lower_bound(ForwardIterator first, ForwardIterator last, T const& value) {
|
||||||
return sprout::lower_bound(
|
return sprout::lower_bound(first, last, value, sprout::less<>());
|
||||||
first, last, value,
|
|
||||||
NS_SSCRISK_CEL_OR_SPROUT::less<>()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
} // namespace sprout
|
} // namespace sprout
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <sprout/config.hpp>
|
#include <sprout/config.hpp>
|
||||||
#include <sprout/iterator/operation.hpp>
|
#include <sprout/iterator/operation.hpp>
|
||||||
#include HDR_FUNCTIONAL_SSCRISK_CEL_OR_SPROUT
|
#include <sprout/functional/less.hpp>
|
||||||
|
|
||||||
namespace sprout {
|
namespace sprout {
|
||||||
|
|
||||||
|
@ -35,10 +35,7 @@ namespace sprout {
|
||||||
template<typename ForwardIterator, typename T>
|
template<typename ForwardIterator, typename T>
|
||||||
inline SPROUT_CONSTEXPR ForwardIterator
|
inline SPROUT_CONSTEXPR ForwardIterator
|
||||||
upper_bound(ForwardIterator first, ForwardIterator last, T const& value) {
|
upper_bound(ForwardIterator first, ForwardIterator last, T const& value) {
|
||||||
return sprout::upper_bound(
|
return sprout::upper_bound(first, last, value, sprout::less<>());
|
||||||
first, last, value,
|
|
||||||
NS_SSCRISK_CEL_OR_SPROUT::less<>()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
} // namespace sprout
|
} // namespace sprout
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue