mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
add c++14 constexpr numeric algorithms
This commit is contained in:
parent
fd608b74e2
commit
f1555cb917
65 changed files with 433 additions and 150 deletions
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/iterator/type_traits/is_iterator_of.hpp>
|
||||
#include <sprout/type_traits/enabler_if.hpp>
|
||||
#include <sprout/algorithm/fixed/results.hpp>
|
||||
#include <sprout/algorithm/fixed/copy_until.hpp>
|
||||
|
||||
|
@ -19,7 +21,10 @@ namespace sprout {
|
|||
//
|
||||
// copy_until
|
||||
//
|
||||
template<typename InputRange, typename Result, typename Predicate>
|
||||
template<
|
||||
typename InputRange, typename Result, typename Predicate,
|
||||
typename sprout::enabler_if<!sprout::is_iterator_outputable<Result>::value>::type = sprout::enabler
|
||||
>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm<Result>::type
|
||||
copy_until(InputRange const& rng, Result const& result, Predicate pred) {
|
||||
return sprout::fixed::copy_until(sprout::begin(rng), sprout::end(rng), result, pred);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue