diff --git a/sprout/algorithm/cxx14/copy.hpp b/sprout/algorithm/cxx14/copy.hpp index 67c358ff..d45b6775 100644 --- a/sprout/algorithm/cxx14/copy.hpp +++ b/sprout/algorithm/cxx14/copy.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_COPY_HPP -#define SPROUT_CXX14_ALGORITHM_COPY_HPP +#ifndef SPROUT_ALGORITHM_CXX14_COPY_HPP +#define SPROUT_ALGORITHM_CXX14_COPY_HPP #include #include @@ -29,4 +29,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_COPY_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_COPY_HPP diff --git a/sprout/algorithm/cxx14/copy_backward.hpp b/sprout/algorithm/cxx14/copy_backward.hpp index d74869ca..777ef0d7 100644 --- a/sprout/algorithm/cxx14/copy_backward.hpp +++ b/sprout/algorithm/cxx14/copy_backward.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_COPY_BACKWARD_HPP -#define SPROUT_CXX14_ALGORITHM_COPY_BACKWARD_HPP +#ifndef SPROUT_ALGORITHM_CXX14_COPY_BACKWARD_HPP +#define SPROUT_ALGORITHM_CXX14_COPY_BACKWARD_HPP #include #include @@ -29,4 +29,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_COPY_BACKWARD_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_COPY_BACKWARD_HPP diff --git a/sprout/algorithm/cxx14/copy_if.hpp b/sprout/algorithm/cxx14/copy_if.hpp index f828c55a..44665a0c 100644 --- a/sprout/algorithm/cxx14/copy_if.hpp +++ b/sprout/algorithm/cxx14/copy_if.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_COPY_IF_HPP -#define SPROUT_CXX14_ALGORITHM_COPY_IF_HPP +#ifndef SPROUT_ALGORITHM_CXX14_COPY_IF_HPP +#define SPROUT_ALGORITHM_CXX14_COPY_IF_HPP #include #include @@ -31,4 +31,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_COPY_IF_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_COPY_IF_HPP diff --git a/sprout/algorithm/cxx14/copy_n.hpp b/sprout/algorithm/cxx14/copy_n.hpp index b95b0e6a..540361dc 100644 --- a/sprout/algorithm/cxx14/copy_n.hpp +++ b/sprout/algorithm/cxx14/copy_n.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_COPY_N_HPP -#define SPROUT_CXX14_ALGORITHM_COPY_N_HPP +#ifndef SPROUT_ALGORITHM_CXX14_COPY_N_HPP +#define SPROUT_ALGORITHM_CXX14_COPY_N_HPP #include #include @@ -29,4 +29,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_COPY_N_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_COPY_N_HPP diff --git a/sprout/algorithm/cxx14/fill.hpp b/sprout/algorithm/cxx14/fill.hpp index a1daaef7..0b0361f5 100644 --- a/sprout/algorithm/cxx14/fill.hpp +++ b/sprout/algorithm/cxx14/fill.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_FILL_HPP -#define SPROUT_CXX14_ALGORITHM_FILL_HPP +#ifndef SPROUT_ALGORITHM_CXX14_FILL_HPP +#define SPROUT_ALGORITHM_CXX14_FILL_HPP #include @@ -23,4 +23,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_FILL_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_FILL_HPP diff --git a/sprout/algorithm/cxx14/fill_n.hpp b/sprout/algorithm/cxx14/fill_n.hpp index c836f941..7b4164c4 100644 --- a/sprout/algorithm/cxx14/fill_n.hpp +++ b/sprout/algorithm/cxx14/fill_n.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_FILL_N_HPP -#define SPROUT_CXX14_ALGORITHM_FILL_N_HPP +#ifndef SPROUT_ALGORITHM_CXX14_FILL_N_HPP +#define SPROUT_ALGORITHM_CXX14_FILL_N_HPP #include #include @@ -29,4 +29,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_FILL_N_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_FILL_N_HPP diff --git a/sprout/algorithm/cxx14/generate.hpp b/sprout/algorithm/cxx14/generate.hpp index 5880e5ef..bbf5d0d3 100644 --- a/sprout/algorithm/cxx14/generate.hpp +++ b/sprout/algorithm/cxx14/generate.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_GENERATE_HPP -#define SPROUT_CXX14_ALGORITHM_GENERATE_HPP +#ifndef SPROUT_ALGORITHM_CXX14_GENERATE_HPP +#define SPROUT_ALGORITHM_CXX14_GENERATE_HPP #include @@ -23,4 +23,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_GENERATE_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_GENERATE_HPP diff --git a/sprout/algorithm/cxx14/generate_n.hpp b/sprout/algorithm/cxx14/generate_n.hpp index 5ef14a45..c033af93 100644 --- a/sprout/algorithm/cxx14/generate_n.hpp +++ b/sprout/algorithm/cxx14/generate_n.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_GENERATE_N_HPP -#define SPROUT_CXX14_ALGORITHM_GENERATE_N_HPP +#ifndef SPROUT_ALGORITHM_CXX14_GENERATE_N_HPP +#define SPROUT_ALGORITHM_CXX14_GENERATE_N_HPP #include @@ -27,4 +27,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_GENERATE_N_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_GENERATE_N_HPP diff --git a/sprout/algorithm/cxx14/iter_swap.hpp b/sprout/algorithm/cxx14/iter_swap.hpp index 634ea58e..2627593b 100644 --- a/sprout/algorithm/cxx14/iter_swap.hpp +++ b/sprout/algorithm/cxx14/iter_swap.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_ITER_SWAP_HPP -#define SPROUT_CXX14_ALGORITHM_ITER_SWAP_HPP +#ifndef SPROUT_ALGORITHM_CXX14_ITER_SWAP_HPP +#define SPROUT_ALGORITHM_CXX14_ITER_SWAP_HPP #include #include @@ -22,4 +22,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_ITER_SWAP_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_ITER_SWAP_HPP diff --git a/sprout/algorithm/cxx14/move.hpp b/sprout/algorithm/cxx14/move.hpp index ff4260a8..29200adc 100644 --- a/sprout/algorithm/cxx14/move.hpp +++ b/sprout/algorithm/cxx14/move.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_MOVE_HPP -#define SPROUT_CXX14_ALGORITHM_MOVE_HPP +#ifndef SPROUT_ALGORITHM_CXX14_MOVE_HPP +#define SPROUT_ALGORITHM_CXX14_MOVE_HPP #include #include @@ -30,4 +30,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_MOVE_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_MOVE_HPP diff --git a/sprout/algorithm/cxx14/move_backward.hpp b/sprout/algorithm/cxx14/move_backward.hpp index ef48017b..6f0c4d0e 100644 --- a/sprout/algorithm/cxx14/move_backward.hpp +++ b/sprout/algorithm/cxx14/move_backward.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_MOVE_BACKWARD_HPP -#define SPROUT_CXX14_ALGORITHM_MOVE_BACKWARD_HPP +#ifndef SPROUT_ALGORITHM_CXX14_MOVE_BACKWARD_HPP +#define SPROUT_ALGORITHM_CXX14_MOVE_BACKWARD_HPP #include #include @@ -30,4 +30,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_MOVE_BACKWARD_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_MOVE_BACKWARD_HPP diff --git a/sprout/algorithm/cxx14/nth_element.hpp b/sprout/algorithm/cxx14/nth_element.hpp index 2d03fb67..0fdab292 100644 --- a/sprout/algorithm/cxx14/nth_element.hpp +++ b/sprout/algorithm/cxx14/nth_element.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_NTH_ELEMENT_HPP -#define SPROUT_CXX14_ALGORITHM_NTH_ELEMENT_HPP +#ifndef SPROUT_ALGORITHM_CXX14_NTH_ELEMENT_HPP +#define SPROUT_ALGORITHM_CXX14_NTH_ELEMENT_HPP #include @@ -24,4 +24,4 @@ namespace sprout { nth_element(RandomAccessIterator first, RandomAccessIterator nth, RandomAccessIterator last, Compare comp); } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_NTH_ELEMENT_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_NTH_ELEMENT_HPP diff --git a/sprout/algorithm/cxx14/partial_sort.hpp b/sprout/algorithm/cxx14/partial_sort.hpp index 7de8d70c..2884a49b 100644 --- a/sprout/algorithm/cxx14/partial_sort.hpp +++ b/sprout/algorithm/cxx14/partial_sort.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_PARTIAL_SORT_HPP -#define SPROUT_CXX14_ALGORITHM_PARTIAL_SORT_HPP +#ifndef SPROUT_ALGORITHM_CXX14_PARTIAL_SORT_HPP +#define SPROUT_ALGORITHM_CXX14_PARTIAL_SORT_HPP #include @@ -24,4 +24,4 @@ namespace sprout { partial_sort(RandomAccessIterator first, RandomAccessIterator middle, RandomAccessIterator last, Compare comp); } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_PARTIAL_SORT_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_PARTIAL_SORT_HPP diff --git a/sprout/algorithm/cxx14/partial_sort_copy.hpp b/sprout/algorithm/cxx14/partial_sort_copy.hpp index 79c672c6..4b7b113b 100644 --- a/sprout/algorithm/cxx14/partial_sort_copy.hpp +++ b/sprout/algorithm/cxx14/partial_sort_copy.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_PARTIAL_SORT_COPY_HPP -#define SPROUT_CXX14_ALGORITHM_PARTIAL_SORT_COPY_HPP +#ifndef SPROUT_ALGORITHM_CXX14_PARTIAL_SORT_COPY_HPP +#define SPROUT_ALGORITHM_CXX14_PARTIAL_SORT_COPY_HPP #include @@ -24,4 +24,4 @@ namespace sprout { partial_sort_copy(InputIterator first, InputIterator last, RandomAccessIterator result_first, RandomAccessIterator result_last, Compare comp); } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_PARTIAL_SORT_COPY_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_PARTIAL_SORT_COPY_HPP diff --git a/sprout/algorithm/cxx14/partition.hpp b/sprout/algorithm/cxx14/partition.hpp index 15b6b970..ddf961ad 100644 --- a/sprout/algorithm/cxx14/partition.hpp +++ b/sprout/algorithm/cxx14/partition.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_PARTITION_HPP -#define SPROUT_CXX14_ALGORITHM_PARTITION_HPP +#ifndef SPROUT_ALGORITHM_CXX14_PARTITION_HPP +#define SPROUT_ALGORITHM_CXX14_PARTITION_HPP #include #include @@ -31,4 +31,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_PARTITION_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_PARTITION_HPP diff --git a/sprout/algorithm/cxx14/partition_copy.hpp b/sprout/algorithm/cxx14/partition_copy.hpp index 59a34423..a40d1c8e 100644 --- a/sprout/algorithm/cxx14/partition_copy.hpp +++ b/sprout/algorithm/cxx14/partition_copy.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_PARTITION_COPY_HPP -#define SPROUT_CXX14_ALGORITHM_PARTITION_COPY_HPP +#ifndef SPROUT_ALGORITHM_CXX14_PARTITION_COPY_HPP +#define SPROUT_ALGORITHM_CXX14_PARTITION_COPY_HPP #include #include @@ -29,4 +29,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_PARTITION_COPY_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_PARTITION_COPY_HPP diff --git a/sprout/algorithm/cxx14/random_shuffle.hpp b/sprout/algorithm/cxx14/random_shuffle.hpp index b5a5e319..c7dfb1a1 100644 --- a/sprout/algorithm/cxx14/random_shuffle.hpp +++ b/sprout/algorithm/cxx14/random_shuffle.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_RANDOM_SHUFFLE_HPP -#define SPROUT_CXX14_ALGORITHM_RANDOM_SHUFFLE_HPP +#ifndef SPROUT_ALGORITHM_CXX14_RANDOM_SHUFFLE_HPP +#define SPROUT_ALGORITHM_CXX14_RANDOM_SHUFFLE_HPP #include #include @@ -27,4 +27,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_RANDOM_SHUFFLE_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_RANDOM_SHUFFLE_HPP diff --git a/sprout/algorithm/cxx14/remove.hpp b/sprout/algorithm/cxx14/remove.hpp index 96618392..6f0fe4b1 100644 --- a/sprout/algorithm/cxx14/remove.hpp +++ b/sprout/algorithm/cxx14/remove.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_REMOVE_HPP -#define SPROUT_CXX14_ALGORITHM_REMOVE_HPP +#ifndef SPROUT_ALGORITHM_CXX14_REMOVE_HPP +#define SPROUT_ALGORITHM_CXX14_REMOVE_HPP #include #include @@ -28,4 +28,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_REMOVE_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_REMOVE_HPP diff --git a/sprout/algorithm/cxx14/remove_copy.hpp b/sprout/algorithm/cxx14/remove_copy.hpp index 701ea92b..a78808e3 100644 --- a/sprout/algorithm/cxx14/remove_copy.hpp +++ b/sprout/algorithm/cxx14/remove_copy.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_REMOVE_COPY_HPP -#define SPROUT_CXX14_ALGORITHM_REMOVE_COPY_HPP +#ifndef SPROUT_ALGORITHM_CXX14_REMOVE_COPY_HPP +#define SPROUT_ALGORITHM_CXX14_REMOVE_COPY_HPP #include #include @@ -31,4 +31,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_REMOVE_COPY_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_REMOVE_COPY_HPP diff --git a/sprout/algorithm/cxx14/remove_copy_if.hpp b/sprout/algorithm/cxx14/remove_copy_if.hpp index 57ddaa20..a689180b 100644 --- a/sprout/algorithm/cxx14/remove_copy_if.hpp +++ b/sprout/algorithm/cxx14/remove_copy_if.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_REMOVE_COPY_IF_HPP -#define SPROUT_CXX14_ALGORITHM_REMOVE_COPY_IF_HPP +#ifndef SPROUT_ALGORITHM_CXX14_REMOVE_COPY_IF_HPP +#define SPROUT_ALGORITHM_CXX14_REMOVE_COPY_IF_HPP #include #include @@ -31,4 +31,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_REMOVE_COPY_IF_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_REMOVE_COPY_IF_HPP diff --git a/sprout/algorithm/cxx14/remove_if.hpp b/sprout/algorithm/cxx14/remove_if.hpp index a5a7971a..65096080 100644 --- a/sprout/algorithm/cxx14/remove_if.hpp +++ b/sprout/algorithm/cxx14/remove_if.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_REMOVE_IF_HPP -#define SPROUT_CXX14_ALGORITHM_REMOVE_IF_HPP +#ifndef SPROUT_ALGORITHM_CXX14_REMOVE_IF_HPP +#define SPROUT_ALGORITHM_CXX14_REMOVE_IF_HPP #include #include @@ -28,4 +28,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_REMOVE_IF_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_REMOVE_IF_HPP diff --git a/sprout/algorithm/cxx14/replace.hpp b/sprout/algorithm/cxx14/replace.hpp index 3d98fa80..0a012a8b 100644 --- a/sprout/algorithm/cxx14/replace.hpp +++ b/sprout/algorithm/cxx14/replace.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_REPLACE_HPP -#define SPROUT_CXX14_ALGORITHM_REPLACE_HPP +#ifndef SPROUT_ALGORITHM_CXX14_REPLACE_HPP +#define SPROUT_ALGORITHM_CXX14_REPLACE_HPP #include @@ -25,4 +25,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_REPLACE_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_REPLACE_HPP diff --git a/sprout/algorithm/cxx14/replace_copy.hpp b/sprout/algorithm/cxx14/replace_copy.hpp index 88ecd0d1..451eb566 100644 --- a/sprout/algorithm/cxx14/replace_copy.hpp +++ b/sprout/algorithm/cxx14/replace_copy.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_REPLACE_COPY_HPP -#define SPROUT_CXX14_ALGORITHM_REPLACE_COPY_HPP +#ifndef SPROUT_ALGORITHM_CXX14_REPLACE_COPY_HPP +#define SPROUT_ALGORITHM_CXX14_REPLACE_COPY_HPP #include #include @@ -20,7 +20,7 @@ namespace sprout { typename InputIterator, typename OutputIterator, typename T, typename sprout::enabler_if::value>::type = sprout::enabler > - inline SPROUT_CXX14_CONSTEXPR void + inline SPROUT_CXX14_CONSTEXPR OutputIterator replace_copy(InputIterator first, InputIterator last, OutputIterator result, T const& old_value, T const& new_value) { for (; first != last; ++first) { *result++ = (*first == old_value ? new_value : *first); @@ -29,4 +29,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_REPLACE_COPY_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_REPLACE_COPY_HPP diff --git a/sprout/algorithm/cxx14/replace_copy_if.hpp b/sprout/algorithm/cxx14/replace_copy_if.hpp index b2f59f7e..5b1ede93 100644 --- a/sprout/algorithm/cxx14/replace_copy_if.hpp +++ b/sprout/algorithm/cxx14/replace_copy_if.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_REPLACE_COPY_IF_HPP -#define SPROUT_CXX14_ALGORITHM_REPLACE_COPY_IF_HPP +#ifndef SPROUT_ALGORITHM_CXX14_REPLACE_COPY_IF_HPP +#define SPROUT_ALGORITHM_CXX14_REPLACE_COPY_IF_HPP #include #include @@ -20,7 +20,7 @@ namespace sprout { typename InputIterator, typename OutputIterator, typename Predicate, typename T, typename sprout::enabler_if::value>::type = sprout::enabler > - inline SPROUT_CXX14_CONSTEXPR void + inline SPROUT_CXX14_CONSTEXPR OutputIterator replace_copy_if(InputIterator first, InputIterator last, OutputIterator result, Predicate pred, T const& new_value) { for (; first != last; ++first) { *result++ = (pred(*first) ? new_value : *first); @@ -29,4 +29,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_REPLACE_COPY_IF_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_REPLACE_COPY_IF_HPP diff --git a/sprout/algorithm/cxx14/replace_if.hpp b/sprout/algorithm/cxx14/replace_if.hpp index 29e16394..517b01e2 100644 --- a/sprout/algorithm/cxx14/replace_if.hpp +++ b/sprout/algorithm/cxx14/replace_if.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_REPLACE_IF_HPP -#define SPROUT_CXX14_ALGORITHM_REPLACE_IF_HPP +#ifndef SPROUT_ALGORITHM_CXX14_REPLACE_IF_HPP +#define SPROUT_ALGORITHM_CXX14_REPLACE_IF_HPP #include @@ -25,4 +25,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_REPLACE_IF_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_REPLACE_IF_HPP diff --git a/sprout/algorithm/cxx14/reverse.hpp b/sprout/algorithm/cxx14/reverse.hpp index 32703265..7b780274 100644 --- a/sprout/algorithm/cxx14/reverse.hpp +++ b/sprout/algorithm/cxx14/reverse.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_REVERSE_HPP -#define SPROUT_CXX14_ALGORITHM_REVERSE_HPP +#ifndef SPROUT_ALGORITHM_CXX14_REVERSE_HPP +#define SPROUT_ALGORITHM_CXX14_REVERSE_HPP #include #include @@ -24,4 +24,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_REVERSE_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_REVERSE_HPP diff --git a/sprout/algorithm/cxx14/reverse_copy.hpp b/sprout/algorithm/cxx14/reverse_copy.hpp index b6ab8ceb..9c0c570d 100644 --- a/sprout/algorithm/cxx14/reverse_copy.hpp +++ b/sprout/algorithm/cxx14/reverse_copy.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_REVERSE_COPY_HPP -#define SPROUT_CXX14_ALGORITHM_REVERSE_COPY_HPP +#ifndef SPROUT_ALGORITHM_CXX14_REVERSE_COPY_HPP +#define SPROUT_ALGORITHM_CXX14_REVERSE_COPY_HPP #include #include @@ -29,4 +29,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_REVERSE_COPY_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_REVERSE_COPY_HPP diff --git a/sprout/algorithm/cxx14/rotate.hpp b/sprout/algorithm/cxx14/rotate.hpp index ad22ffe9..597cf377 100644 --- a/sprout/algorithm/cxx14/rotate.hpp +++ b/sprout/algorithm/cxx14/rotate.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_ROTATE_HPP -#define SPROUT_CXX14_ALGORITHM_ROTATE_HPP +#ifndef SPROUT_ALGORITHM_CXX14_ROTATE_HPP +#define SPROUT_ALGORITHM_CXX14_ROTATE_HPP #include #include @@ -55,4 +55,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_ROTATE_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_ROTATE_HPP diff --git a/sprout/algorithm/cxx14/rotate_copy.hpp b/sprout/algorithm/cxx14/rotate_copy.hpp index e73c01fd..4712b3f8 100644 --- a/sprout/algorithm/cxx14/rotate_copy.hpp +++ b/sprout/algorithm/cxx14/rotate_copy.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_ROTATE_COPY_HPP -#define SPROUT_CXX14_ALGORITHM_ROTATE_COPY_HPP +#ifndef SPROUT_ALGORITHM_CXX14_ROTATE_COPY_HPP +#define SPROUT_ALGORITHM_CXX14_ROTATE_COPY_HPP #include #include @@ -27,4 +27,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_ROTATE_COPY_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_ROTATE_COPY_HPP diff --git a/sprout/algorithm/cxx14/shuffle.hpp b/sprout/algorithm/cxx14/shuffle.hpp index 933198ee..15ac44b4 100644 --- a/sprout/algorithm/cxx14/shuffle.hpp +++ b/sprout/algorithm/cxx14/shuffle.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_SHUFFLE_HPP -#define SPROUT_CXX14_ALGORITHM_SHUFFLE_HPP +#ifndef SPROUT_ALGORITHM_CXX14_SHUFFLE_HPP +#define SPROUT_ALGORITHM_CXX14_SHUFFLE_HPP #include #include @@ -36,4 +36,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_SHUFFLE_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_SHUFFLE_HPP diff --git a/sprout/algorithm/cxx14/sort.hpp b/sprout/algorithm/cxx14/sort.hpp index c8bdc489..f599d496 100644 --- a/sprout/algorithm/cxx14/sort.hpp +++ b/sprout/algorithm/cxx14/sort.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_SORT_HPP -#define SPROUT_CXX14_ALGORITHM_SORT_HPP +#ifndef SPROUT_ALGORITHM_CXX14_SORT_HPP +#define SPROUT_ALGORITHM_CXX14_SORT_HPP #include #include @@ -353,4 +353,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_SORT_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_SORT_HPP diff --git a/sprout/algorithm/cxx14/stable_partition.hpp b/sprout/algorithm/cxx14/stable_partition.hpp index 7e34d2bf..ef059999 100644 --- a/sprout/algorithm/cxx14/stable_partition.hpp +++ b/sprout/algorithm/cxx14/stable_partition.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_STABLE_PARTITION_HPP -#define SPROUT_CXX14_ALGORITHM_STABLE_PARTITION_HPP +#ifndef SPROUT_ALGORITHM_CXX14_STABLE_PARTITION_HPP +#define SPROUT_ALGORITHM_CXX14_STABLE_PARTITION_HPP #include @@ -20,4 +20,4 @@ namespace sprout { stable_partition(BidirectionalIterator first, BidirectionalIterator last, Predicate pred); } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_STABLE_PARTITION_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_STABLE_PARTITION_HPP diff --git a/sprout/algorithm/cxx14/stable_sort.hpp b/sprout/algorithm/cxx14/stable_sort.hpp index 774e3fb4..6a5f936c 100644 --- a/sprout/algorithm/cxx14/stable_sort.hpp +++ b/sprout/algorithm/cxx14/stable_sort.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_STABLE_SORT_HPP -#define SPROUT_CXX14_ALGORITHM_STABLE_SORT_HPP +#ifndef SPROUT_ALGORITHM_CXX14_STABLE_SORT_HPP +#define SPROUT_ALGORITHM_CXX14_STABLE_SORT_HPP #include @@ -24,4 +24,4 @@ namespace sprout { stable_sort(RandomAccessIterator first, RandomAccessIterator last, Compare comp); } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_STABLE_SORT_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_STABLE_SORT_HPP diff --git a/sprout/algorithm/cxx14/swap_ranges.hpp b/sprout/algorithm/cxx14/swap_ranges.hpp index 06682afd..ddafff0f 100644 --- a/sprout/algorithm/cxx14/swap_ranges.hpp +++ b/sprout/algorithm/cxx14/swap_ranges.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_SWAP_RANGES_HPP -#define SPROUT_CXX14_ALGORITHM_SWAP_RANGES_HPP +#ifndef SPROUT_ALGORITHM_CXX14_SWAP_RANGES_HPP +#define SPROUT_ALGORITHM_CXX14_SWAP_RANGES_HPP #include #include @@ -25,4 +25,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_SWAP_RANGES_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_SWAP_RANGES_HPP diff --git a/sprout/algorithm/cxx14/transform.hpp b/sprout/algorithm/cxx14/transform.hpp index dc50f62f..68af2e78 100644 --- a/sprout/algorithm/cxx14/transform.hpp +++ b/sprout/algorithm/cxx14/transform.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_TRANSFORM_HPP -#define SPROUT_CXX14_ALGORITHM_TRANSFORM_HPP +#ifndef SPROUT_ALGORITHM_CXX14_TRANSFORM_HPP +#define SPROUT_ALGORITHM_CXX14_TRANSFORM_HPP #include #include @@ -40,4 +40,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_TRANSFORM_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_TRANSFORM_HPP diff --git a/sprout/algorithm/cxx14/unique.hpp b/sprout/algorithm/cxx14/unique.hpp index e5eb28b9..aa192555 100644 --- a/sprout/algorithm/cxx14/unique.hpp +++ b/sprout/algorithm/cxx14/unique.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_UNIQUE_HPP -#define SPROUT_CXX14_ALGORITHM_UNIQUE_HPP +#ifndef SPROUT_ALGORITHM_CXX14_UNIQUE_HPP +#define SPROUT_ALGORITHM_CXX14_UNIQUE_HPP #include #include @@ -52,4 +52,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_UNIQUE_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_UNIQUE_HPP diff --git a/sprout/algorithm/cxx14/unique_copy.hpp b/sprout/algorithm/cxx14/unique_copy.hpp index 39fde788..2266d0a3 100644 --- a/sprout/algorithm/cxx14/unique_copy.hpp +++ b/sprout/algorithm/cxx14/unique_copy.hpp @@ -5,8 +5,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#ifndef SPROUT_CXX14_ALGORITHM_UNIQUE_COPY_HPP -#define SPROUT_CXX14_ALGORITHM_UNIQUE_COPY_HPP +#ifndef SPROUT_ALGORITHM_CXX14_UNIQUE_COPY_HPP +#define SPROUT_ALGORITHM_CXX14_UNIQUE_COPY_HPP #include #include @@ -58,4 +58,4 @@ namespace sprout { } } // namespace sprout -#endif // #ifndef SPROUT_CXX14_ALGORITHM_UNIQUE_COPY_HPP +#endif // #ifndef SPROUT_ALGORITHM_CXX14_UNIQUE_COPY_HPP diff --git a/sprout/numeric/cxx14.hpp b/sprout/numeric/cxx14.hpp index c1010d44..7c0a4389 100644 --- a/sprout/numeric/cxx14.hpp +++ b/sprout/numeric/cxx14.hpp @@ -9,8 +9,8 @@ #define SPROUT_NUMERIC_CXX14_HPP #include -//#include -//#include -//#include +#include +#include +#include #endif // #ifndef SPROUT_NUMERIC_CXX14_HPP diff --git a/sprout/numeric/cxx14/adjacent_difference.hpp b/sprout/numeric/cxx14/adjacent_difference.hpp new file mode 100644 index 00000000..86146391 --- /dev/null +++ b/sprout/numeric/cxx14/adjacent_difference.hpp @@ -0,0 +1,54 @@ +/*============================================================================= + Copyright (c) 2011-2014 Bolero MURAKAMI + https://github.com/bolero-MURAKAMI/Sprout + + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ +#ifndef SPROUT_NUMERIC_CXX14_ADJACENT_DIFFERENCE_HPP +#define SPROUT_NUMERIC_CXX14_ADJACENT_DIFFERENCE_HPP + +#include +#include +#include +#include +#include +#include HDR_FUNCTIONAL_SSCRISK_CEL_OR_SPROUT + +namespace sprout { + // + // 26.7.5 Adjacent difference + // + template< + typename InputIterator, typename OutputIterator, typename BinaryOperation, + typename sprout::enabler_if::value>::type = sprout::enabler + > + inline SPROUT_CXX14_CONSTEXPR OutputIterator + adjacent_difference(InputIterator first, InputIterator last, OutputIterator result, BinaryOperation binary_op) { + typedef typename std::iterator_traits::value_type value_type; + if (first == last) { + return result; + } + value_type acc = *first; + *result = acc; + while (++first != last) { + value_type val = *first; + *++result = binary_op(val, acc); + acc = sprout::move(val); + } + return ++result; + } + template< + typename InputIterator, typename OutputIterator, + typename sprout::enabler_if::value>::type = sprout::enabler + > + inline SPROUT_CXX14_CONSTEXPR OutputIterator + adjacent_difference(InputIterator first, InputIterator last, OutputIterator result) { + return sprout::adjacent_difference( + first, last, result, + NS_SSCRISK_CEL_OR_SPROUT::minus::value_type>() + ); + } +} // namespace sprout + +#endif // #ifndef SPROUT_NUMERIC_CXX14_ADJACENT_DIFFERENCE_HPP diff --git a/sprout/numeric/cxx14/iota.hpp b/sprout/numeric/cxx14/iota.hpp new file mode 100644 index 00000000..01e04bb3 --- /dev/null +++ b/sprout/numeric/cxx14/iota.hpp @@ -0,0 +1,27 @@ +/*============================================================================= + Copyright (c) 2011-2014 Bolero MURAKAMI + https://github.com/bolero-MURAKAMI/Sprout + + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ +#ifndef SPROUT_NUMERIC_CXX14_IOTA_HPP +#define SPROUT_NUMERIC_CXX14_IOTA_HPP + +#include + +namespace sprout { + // + // 26.7.6 Iota + // + template + inline SPROUT_CXX14_CONSTEXPR void + iota(ForwardIterator first, ForwardIterator last, T value) { + while (first != last) { + *first++ = value; + ++value; + } + } +} // namespace sprout + +#endif // #ifndef SPROUT_NUMERIC_CXX14_IOTA_HPP diff --git a/sprout/numeric/cxx14/partial_sum.hpp b/sprout/numeric/cxx14/partial_sum.hpp new file mode 100644 index 00000000..ce64d675 --- /dev/null +++ b/sprout/numeric/cxx14/partial_sum.hpp @@ -0,0 +1,52 @@ +/*============================================================================= + Copyright (c) 2011-2014 Bolero MURAKAMI + https://github.com/bolero-MURAKAMI/Sprout + + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ +#ifndef SPROUT_NUMERIC_CXX14_PARTIAL_SUM_HPP +#define SPROUT_NUMERIC_CXX14_PARTIAL_SUM_HPP + +#include +#include +#include +#include +#include HDR_FUNCTIONAL_SSCRISK_CEL_OR_SPROUT + +namespace sprout { + // + // 26.7.4 Partial sum + // + template< + typename InputIterator, typename OutputIterator, typename BinaryOperation, + typename sprout::enabler_if::value>::type = sprout::enabler + > + inline SPROUT_CXX14_CONSTEXPR OutputIterator + partial_sum(InputIterator first, InputIterator last, OutputIterator result, BinaryOperation binary_op) { + typedef typename std::iterator_traits::value_type value_type; + if (first == last) { + return result; + } + value_type sum = *first; + *result = sum; + while (++first != last) { + sum = binary_op(sum, *first); + *++result = sum; + } + return ++result; + } + template< + typename InputIterator, typename OutputIterator, + typename sprout::enabler_if::value>::type = sprout::enabler + > + inline SPROUT_CXX14_CONSTEXPR OutputIterator + partial_sum(InputIterator first, InputIterator last, OutputIterator result) { + return sprout::partial_sum( + first, last, result, + NS_SSCRISK_CEL_OR_SPROUT::plus::value_type>() + ); + } +} // namespace sprout + +#endif // #ifndef SPROUT_NUMERIC_CXX14_PARTIAL_SUM_HPP diff --git a/sprout/range/algorithm/fixed/clamp_range_copy.hpp b/sprout/range/algorithm/fixed/clamp_range_copy.hpp index 724835a0..68d11c67 100644 --- a/sprout/range/algorithm/fixed/clamp_range_copy.hpp +++ b/sprout/range/algorithm/fixed/clamp_range_copy.hpp @@ -11,6 +11,8 @@ #include #include #include +#include +#include #include #include @@ -20,7 +22,10 @@ namespace sprout { // // clamp_range_copy // - template + template< + typename InputRange, typename Result, typename Compare, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type clamp_range_copy( InputRange const& rng, Result const& result, @@ -31,7 +36,10 @@ namespace sprout { { return sprout::fixed::clamp_range_copy(sprout::begin(rng), sprout::end(rng), result, low, high, comp); } - template + template< + typename InputRange, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type clamp_range_copy( InputRange const& rng, Result const& result, diff --git a/sprout/range/algorithm/fixed/copy.hpp b/sprout/range/algorithm/fixed/copy.hpp index 84dc7743..fe8eaf5e 100644 --- a/sprout/range/algorithm/fixed/copy.hpp +++ b/sprout/range/algorithm/fixed/copy.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // copy // - template + template< + typename InputRange, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type copy(InputRange const& rng, Result const& result) { return sprout::fixed::copy(sprout::begin(rng), sprout::end(rng), result); diff --git a/sprout/range/algorithm/fixed/copy_backward.hpp b/sprout/range/algorithm/fixed/copy_backward.hpp index 82eb7098..09c1e88a 100644 --- a/sprout/range/algorithm/fixed/copy_backward.hpp +++ b/sprout/range/algorithm/fixed/copy_backward.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // copy_backward // - template + template< + typename BidirectionalRange, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type copy_backward(BidirectionalRange const& rng, Result const& result) { return sprout::fixed::copy_backward(sprout::begin(rng), sprout::end(rng), result); diff --git a/sprout/range/algorithm/fixed/copy_if.hpp b/sprout/range/algorithm/fixed/copy_if.hpp index f1b3d1a6..c5a47643 100644 --- a/sprout/range/algorithm/fixed/copy_if.hpp +++ b/sprout/range/algorithm/fixed/copy_if.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // copy_if // - template + template< + typename InputRange, typename Result, typename Predicate, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type copy_if(InputRange const& rng, Result const& result, Predicate pred) { return sprout::fixed::copy_if(sprout::begin(rng), sprout::end(rng), result, pred); diff --git a/sprout/range/algorithm/fixed/copy_until.hpp b/sprout/range/algorithm/fixed/copy_until.hpp index 1670d7bd..827ceddc 100644 --- a/sprout/range/algorithm/fixed/copy_until.hpp +++ b/sprout/range/algorithm/fixed/copy_until.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // copy_until // - template + template< + typename InputRange, typename Result, typename Predicate, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type copy_until(InputRange const& rng, Result const& result, Predicate pred) { return sprout::fixed::copy_until(sprout::begin(rng), sprout::end(rng), result, pred); diff --git a/sprout/range/algorithm/fixed/copy_while.hpp b/sprout/range/algorithm/fixed/copy_while.hpp index aedc4464..a93f7697 100644 --- a/sprout/range/algorithm/fixed/copy_while.hpp +++ b/sprout/range/algorithm/fixed/copy_while.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // copy_while // - template + template< + typename InputRange, typename Result, typename Predicate, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type copy_while(InputRange const& rng, Result const& result, Predicate pred) { return sprout::fixed::copy_while(sprout::begin(rng), sprout::end(rng), result, pred); diff --git a/sprout/range/algorithm/fixed/merge.hpp b/sprout/range/algorithm/fixed/merge.hpp index dcf5cf42..f99e6325 100644 --- a/sprout/range/algorithm/fixed/merge.hpp +++ b/sprout/range/algorithm/fixed/merge.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,12 +21,18 @@ namespace sprout { // // merge // - template + template< + typename InputRange1, typename InputRange2, typename Result, typename Compare, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type merge(InputRange1 const& rng1, InputRange2 const& rng2, Result const& result, Compare comp) { return sprout::fixed::merge(sprout::begin(rng1), sprout::end(rng1), sprout::begin(rng2), sprout::end(rng2), result, comp); } - template + template< + typename InputRange1, typename InputRange2, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type merge(InputRange1 const& rng1, InputRange2 const& rng2, Result const& result) { return sprout::fixed::merge(sprout::begin(rng1), sprout::end(rng1), sprout::begin(rng2), sprout::end(rng2), result); diff --git a/sprout/range/algorithm/fixed/partition_copy.hpp b/sprout/range/algorithm/fixed/partition_copy.hpp index 3b679a3d..81041553 100644 --- a/sprout/range/algorithm/fixed/partition_copy.hpp +++ b/sprout/range/algorithm/fixed/partition_copy.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // partition_copy // - template + template< + typename InputRange, typename Result, typename Predicate, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type partition_copy(InputRange const& rng, Result const& result, Predicate pred) { return sprout::fixed::partition_copy(sprout::begin(rng), sprout::end(rng), result, pred); diff --git a/sprout/range/algorithm/fixed/remove_copy.hpp b/sprout/range/algorithm/fixed/remove_copy.hpp index d1e3562f..474d2c57 100644 --- a/sprout/range/algorithm/fixed/remove_copy.hpp +++ b/sprout/range/algorithm/fixed/remove_copy.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // remove_copy // - template + template< + typename InputRange, typename Result, typename T, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type remove_copy(InputRange const& rng, Result const& result, T const& value) { return sprout::fixed::remove_copy(sprout::begin(rng), sprout::end(rng), result, value); diff --git a/sprout/range/algorithm/fixed/remove_copy_if.hpp b/sprout/range/algorithm/fixed/remove_copy_if.hpp index 8bc896cf..6feee209 100644 --- a/sprout/range/algorithm/fixed/remove_copy_if.hpp +++ b/sprout/range/algorithm/fixed/remove_copy_if.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // remove_copy_if // - template + template< + typename InputRange, typename Result, typename Predicate, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type remove_copy_if(InputRange const& rng, Result const& result, Predicate pred) { return sprout::fixed::remove_copy_if(sprout::begin(rng), sprout::end(rng), result, pred); diff --git a/sprout/range/algorithm/fixed/replace_copy.hpp b/sprout/range/algorithm/fixed/replace_copy.hpp index 7d64baf6..2312de2a 100644 --- a/sprout/range/algorithm/fixed/replace_copy.hpp +++ b/sprout/range/algorithm/fixed/replace_copy.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // replace_copy // - template + template< + typename InputRange, typename Result, typename T, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type replace_copy(InputRange const& rng, Result const& result, T const& old_value, T const& new_value) { return sprout::fixed::replace_copy(sprout::begin(rng), sprout::end(rng), result, old_value, new_value); diff --git a/sprout/range/algorithm/fixed/replace_copy_if.hpp b/sprout/range/algorithm/fixed/replace_copy_if.hpp index cb9fa983..c8152737 100644 --- a/sprout/range/algorithm/fixed/replace_copy_if.hpp +++ b/sprout/range/algorithm/fixed/replace_copy_if.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // replace_copy_if // - template + template< + typename InputRange, typename Result, typename T, typename Predicate, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type replace_copy_if(InputRange const& rng, Result const& result, Predicate pred, T const& new_value) { return sprout::fixed::replace_copy_if(sprout::begin(rng), sprout::end(rng), result, pred, new_value); diff --git a/sprout/range/algorithm/fixed/reverse_copy.hpp b/sprout/range/algorithm/fixed/reverse_copy.hpp index 27143d6e..ffcdf511 100644 --- a/sprout/range/algorithm/fixed/reverse_copy.hpp +++ b/sprout/range/algorithm/fixed/reverse_copy.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // reverse_copy // - template + template< + typename BidirectionalRange, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type reverse_copy(BidirectionalRange const& rng, Result const& result) { return sprout::fixed::reverse_copy(sprout::begin(rng), sprout::end(rng), result); diff --git a/sprout/range/algorithm/fixed/rotate_copy.hpp b/sprout/range/algorithm/fixed/rotate_copy.hpp index dc3851c6..ead23629 100644 --- a/sprout/range/algorithm/fixed/rotate_copy.hpp +++ b/sprout/range/algorithm/fixed/rotate_copy.hpp @@ -11,6 +11,8 @@ #include #include #include +#include +#include #include #include @@ -20,7 +22,10 @@ namespace sprout { // // rotate_copy // - template + template< + typename ForwardRange, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type rotate_copy( ForwardRange const& rng, typename sprout::container_traits::const_iterator middle, diff --git a/sprout/range/algorithm/fixed/set_difference.hpp b/sprout/range/algorithm/fixed/set_difference.hpp index 950a6253..8bcf4a0e 100644 --- a/sprout/range/algorithm/fixed/set_difference.hpp +++ b/sprout/range/algorithm/fixed/set_difference.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,12 +21,18 @@ namespace sprout { // // set_difference // - template + template< + typename InputRange1, typename InputRange2, typename Result, typename Compare, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type set_difference(InputRange1 const& rng1, InputRange2 const& rng2, Result const& result, Compare comp) { return sprout::fixed::set_difference(sprout::begin(rng1), sprout::end(rng1), sprout::begin(rng2), sprout::end(rng2), result, comp); } - template + template< + typename InputRange1, typename InputRange2, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type set_difference(InputRange1 const& rng1, InputRange2 const& rng2, Result const& result) { return sprout::fixed::set_difference(sprout::begin(rng1), sprout::end(rng1), sprout::begin(rng2), sprout::end(rng2), result); diff --git a/sprout/range/algorithm/fixed/set_intersection.hpp b/sprout/range/algorithm/fixed/set_intersection.hpp index 4d8c7524..76a101e5 100644 --- a/sprout/range/algorithm/fixed/set_intersection.hpp +++ b/sprout/range/algorithm/fixed/set_intersection.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,12 +21,18 @@ namespace sprout { // // set_intersection // - template + template< + typename InputRange1, typename InputRange2, typename Result, typename Compare, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type set_intersection(InputRange1 const& rng1, InputRange2 const& rng2, Result const& result, Compare comp) { return sprout::fixed::set_intersection(sprout::begin(rng1), sprout::end(rng1), sprout::begin(rng2), sprout::end(rng2), result, comp); } - template + template< + typename InputRange1, typename InputRange2, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type set_intersection(InputRange1 const& rng1, InputRange2 const& rng2, Result const& result) { return sprout::fixed::set_intersection(sprout::begin(rng1), sprout::end(rng1), sprout::begin(rng2), sprout::end(rng2), result); diff --git a/sprout/range/algorithm/fixed/set_symmetric_difference.hpp b/sprout/range/algorithm/fixed/set_symmetric_difference.hpp index d7d6c1ba..3d3b8b42 100644 --- a/sprout/range/algorithm/fixed/set_symmetric_difference.hpp +++ b/sprout/range/algorithm/fixed/set_symmetric_difference.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,12 +21,18 @@ namespace sprout { // // set_symmetric_difference // - template + template< + typename InputRange1, typename InputRange2, typename Result, typename Compare, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type set_symmetric_difference(InputRange1 const& rng1, InputRange2 const& rng2, Result const& result, Compare comp) { return sprout::fixed::set_symmetric_difference(sprout::begin(rng1), sprout::end(rng1), sprout::begin(rng2), sprout::end(rng2), result, comp); } - template + template< + typename InputRange1, typename InputRange2, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type set_symmetric_difference(InputRange1 const& rng1, InputRange2 const& rng2, Result const& result) { return sprout::fixed::set_symmetric_difference(sprout::begin(rng1), sprout::end(rng1), sprout::begin(rng2), sprout::end(rng2), result); diff --git a/sprout/range/algorithm/fixed/set_union.hpp b/sprout/range/algorithm/fixed/set_union.hpp index e132f73f..446013d2 100644 --- a/sprout/range/algorithm/fixed/set_union.hpp +++ b/sprout/range/algorithm/fixed/set_union.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,12 +21,18 @@ namespace sprout { // // set_union // - template + template< + typename InputRange1, typename InputRange2, typename Result, typename Compare, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type set_union(InputRange1 const& rng1, InputRange2 const& rng2, Result const& result, Compare comp) { return sprout::fixed::set_union(sprout::begin(rng1), sprout::end(rng1), sprout::begin(rng2), sprout::end(rng2), result, comp); } - template + template< + typename InputRange1, typename InputRange2, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type set_union(InputRange1 const& rng1, InputRange2 const& rng2, Result const& result) { return sprout::fixed::set_union(sprout::begin(rng1), sprout::end(rng1), sprout::begin(rng2), sprout::end(rng2), result); diff --git a/sprout/range/algorithm/fixed/stable_partition_copy.hpp b/sprout/range/algorithm/fixed/stable_partition_copy.hpp index ff55864a..70dc91d1 100644 --- a/sprout/range/algorithm/fixed/stable_partition_copy.hpp +++ b/sprout/range/algorithm/fixed/stable_partition_copy.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,7 +21,10 @@ namespace sprout { // // stable_partition_copy // - template + template< + typename BidirectionalRange, typename Result, typename Predicate, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type stable_partition_copy(BidirectionalRange const& rng, Result const& result, Predicate pred) { return sprout::fixed::stable_partition_copy(sprout::begin(rng), sprout::end(rng), result, pred); diff --git a/sprout/range/algorithm/fixed/swap_element_copy.hpp b/sprout/range/algorithm/fixed/swap_element_copy.hpp index 8b20b7dd..4695be85 100644 --- a/sprout/range/algorithm/fixed/swap_element_copy.hpp +++ b/sprout/range/algorithm/fixed/swap_element_copy.hpp @@ -11,6 +11,8 @@ #include #include #include +#include +#include #include #include @@ -20,7 +22,10 @@ namespace sprout { // // swap_element_copy // - template + template< + typename ForwardRange, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type swap_element_copy( ForwardRange const& rng, Result const& result, diff --git a/sprout/range/algorithm/fixed/transform.hpp b/sprout/range/algorithm/fixed/transform.hpp index eac3d427..ef6111db 100644 --- a/sprout/range/algorithm/fixed/transform.hpp +++ b/sprout/range/algorithm/fixed/transform.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,12 +21,18 @@ namespace sprout { // // transform // - template + template< + typename InputRange, typename Result, typename UnaryOperation, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type transform(InputRange const& rng, Result const& result, UnaryOperation op) { return sprout::fixed::transform(sprout::begin(rng), sprout::end(rng), result, op); } - template + template< + typename InputRange1, typename InputRange2, typename Result, typename BinaryOperation, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type transform(InputRange1 const& rng1, InputRange2 const& rng2, Result const& result, BinaryOperation op) { return sprout::fixed::transform(sprout::begin(rng1), sprout::end(rng1), sprout::begin(rng2), result, op); diff --git a/sprout/range/algorithm/fixed/unique_copy.hpp b/sprout/range/algorithm/fixed/unique_copy.hpp index f1db2a06..706ba00a 100644 --- a/sprout/range/algorithm/fixed/unique_copy.hpp +++ b/sprout/range/algorithm/fixed/unique_copy.hpp @@ -10,6 +10,8 @@ #include #include +#include +#include #include #include @@ -19,12 +21,18 @@ namespace sprout { // // unique_copy // - template + template< + typename InputRange, typename Result, typename BinaryPredicate, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type unique_copy(InputRange const& rng, Result const& result, BinaryPredicate pred) { return sprout::fixed::unique_copy(sprout::begin(rng), sprout::end(rng), result, pred); } - template + template< + typename InputRange, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type unique_copy(InputRange const& rng, Result const& result) { return sprout::fixed::unique_copy(sprout::begin(rng), sprout::end(rng), result); diff --git a/sprout/range/numeric/fixed/adjacent_difference.hpp b/sprout/range/numeric/fixed/adjacent_difference.hpp index 3992a0a4..fb0ebbb3 100644 --- a/sprout/range/numeric/fixed/adjacent_difference.hpp +++ b/sprout/range/numeric/fixed/adjacent_difference.hpp @@ -11,6 +11,8 @@ #include #include #include +#include +#include #include #include @@ -20,12 +22,18 @@ namespace sprout { // // adjacent_difference // - template + template< + typename InputRange, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type adjacent_difference(InputRange const& rng, Result const& result) { return sprout::fixed::adjacent_difference(sprout::begin(rng), sprout::end(rng), result); } - template + template< + typename InputRange, typename Result, typename BinaryOperation, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type adjacent_difference(InputRange const& rng, Result const& result, BinaryOperation binary_op) { return sprout::fixed::adjacent_difference(sprout::begin(rng), sprout::end(rng), result, binary_op); diff --git a/sprout/range/numeric/fixed/partial_sum.hpp b/sprout/range/numeric/fixed/partial_sum.hpp index c90edfbe..f01c7c80 100644 --- a/sprout/range/numeric/fixed/partial_sum.hpp +++ b/sprout/range/numeric/fixed/partial_sum.hpp @@ -11,6 +11,8 @@ #include #include #include +#include +#include #include #include @@ -20,12 +22,18 @@ namespace sprout { // // partial_sum // - template + template< + typename InputRange, typename Result, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type partial_sum(InputRange const& rng, Result const& result) { return sprout::fixed::partial_sum(sprout::begin(rng), sprout::end(rng), result); } - template + template< + typename InputRange, typename Result, typename BinaryOperation, + typename sprout::enabler_if::value>::type = sprout::enabler + > inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm::type partial_sum(InputRange const& rng, Result const& result, BinaryOperation binary_op) { return sprout::fixed::partial_sum(sprout::begin(rng), sprout::end(rng), result, binary_op);