From c6bd230ee4f5796b4694351c877afc51bacad435 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Wed, 4 Apr 2012 22:23:41 +0900 Subject: [PATCH] fix inline add container/indexes.hpp add tuple/indexes.hpp --- sprout/adapt/sscrisk/cel/array.hpp | 12 +-- sprout/algorithm/adjacent_find.hpp | 4 +- sprout/algorithm/all_of.hpp | 2 +- sprout/algorithm/any_of.hpp | 2 +- sprout/algorithm/binary_search.hpp | 4 +- sprout/algorithm/count.hpp | 2 +- sprout/algorithm/count_if.hpp | 2 +- sprout/algorithm/equal.hpp | 4 +- sprout/algorithm/equal_range.hpp | 4 +- sprout/algorithm/find.hpp | 2 +- sprout/algorithm/find_end.hpp | 4 +- sprout/algorithm/find_first_of.hpp | 4 +- sprout/algorithm/find_if.hpp | 2 +- sprout/algorithm/find_if_not.hpp | 2 +- sprout/algorithm/fit/bogo_sort.hpp | 8 +- sprout/algorithm/fit/bogo_sort_result.hpp | 10 +-- sprout/algorithm/fit/copy.hpp | 4 +- sprout/algorithm/fit/copy_backward.hpp | 4 +- sprout/algorithm/fit/copy_if.hpp | 4 +- sprout/algorithm/fit/copy_n.hpp | 4 +- sprout/algorithm/fit/fill.hpp | 4 +- sprout/algorithm/fit/fill_n.hpp | 4 +- sprout/algorithm/fit/generate.hpp | 4 +- sprout/algorithm/fit/generate_n.hpp | 4 +- sprout/algorithm/fit/inplace_merge.hpp | 8 +- sprout/algorithm/fit/make_heap.hpp | 8 +- sprout/algorithm/fit/make_partial_heap.hpp | 8 +- sprout/algorithm/fit/merge.hpp | 8 +- sprout/algorithm/fit/nth_element.hpp | 8 +- sprout/algorithm/fit/partial_sort.hpp | 8 +- sprout/algorithm/fit/partition.hpp | 4 +- sprout/algorithm/fit/partition_copy.hpp | 4 +- sprout/algorithm/fit/pop_heap.hpp | 8 +- sprout/algorithm/fit/push_heap.hpp | 8 +- sprout/algorithm/fit/remove.hpp | 4 +- sprout/algorithm/fit/remove_copy.hpp | 4 +- sprout/algorithm/fit/remove_copy_if.hpp | 4 +- sprout/algorithm/fit/remove_if.hpp | 4 +- sprout/algorithm/fit/replace.hpp | 4 +- sprout/algorithm/fit/replace_copy.hpp | 4 +- sprout/algorithm/fit/replace_copy_if.hpp | 4 +- sprout/algorithm/fit/replace_if.hpp | 4 +- sprout/algorithm/fit/reverse.hpp | 4 +- sprout/algorithm/fit/reverse_copy.hpp | 4 +- sprout/algorithm/fit/rotate.hpp | 4 +- sprout/algorithm/fit/rotate_copy.hpp | 4 +- sprout/algorithm/fit/set_difference.hpp | 8 +- sprout/algorithm/fit/set_intersection.hpp | 8 +- .../fit/set_symmetric_difference.hpp | 8 +- sprout/algorithm/fit/set_union.hpp | 8 +- sprout/algorithm/fit/shuffle.hpp | 4 +- sprout/algorithm/fit/shuffle_result.hpp | 6 +- sprout/algorithm/fit/sort.hpp | 8 +- sprout/algorithm/fit/sort_heap.hpp | 8 +- sprout/algorithm/fit/stable_partition.hpp | 4 +- .../algorithm/fit/stable_partition_copy.hpp | 4 +- sprout/algorithm/fit/stable_sort.hpp | 8 +- sprout/algorithm/fit/swap_element.hpp | 4 +- sprout/algorithm/fit/swap_element_copy.hpp | 4 +- sprout/algorithm/fit/transform.hpp | 8 +- sprout/algorithm/fit/unique.hpp | 8 +- sprout/algorithm/fit/unique_copy.hpp | 8 +- sprout/algorithm/fixed/bogo_sort.hpp | 8 +- sprout/algorithm/fixed/bogo_sort_result.hpp | 8 +- sprout/algorithm/fixed/copy.hpp | 12 +-- sprout/algorithm/fixed/copy_backward.hpp | 12 +-- sprout/algorithm/fixed/copy_if.hpp | 6 +- sprout/algorithm/fixed/copy_n.hpp | 10 +-- sprout/algorithm/fixed/fill.hpp | 4 +- sprout/algorithm/fixed/fill_n.hpp | 2 +- sprout/algorithm/fixed/generate.hpp | 22 ++--- sprout/algorithm/fixed/generate_n.hpp | 2 +- sprout/algorithm/fixed/inplace_merge.hpp | 4 +- sprout/algorithm/fixed/make_heap.hpp | 10 +-- sprout/algorithm/fixed/make_partial_heap.hpp | 8 +- sprout/algorithm/fixed/merge.hpp | 8 +- sprout/algorithm/fixed/nth_element.hpp | 8 +- sprout/algorithm/fixed/partial_sort.hpp | 6 +- sprout/algorithm/fixed/partition.hpp | 2 +- sprout/algorithm/fixed/partition_copy.hpp | 6 +- sprout/algorithm/fixed/pop_heap.hpp | 6 +- sprout/algorithm/fixed/push_heap.hpp | 6 +- sprout/algorithm/fixed/remove.hpp | 2 +- sprout/algorithm/fixed/remove_copy.hpp | 6 +- sprout/algorithm/fixed/remove_copy_if.hpp | 6 +- sprout/algorithm/fixed/remove_if.hpp | 2 +- sprout/algorithm/fixed/replace.hpp | 2 +- sprout/algorithm/fixed/replace_copy.hpp | 12 +-- sprout/algorithm/fixed/replace_copy_if.hpp | 12 +-- sprout/algorithm/fixed/replace_if.hpp | 2 +- sprout/algorithm/fixed/reverse.hpp | 2 +- sprout/algorithm/fixed/reverse_copy.hpp | 12 +-- sprout/algorithm/fixed/rotate.hpp | 2 +- sprout/algorithm/fixed/rotate_copy.hpp | 16 ++-- sprout/algorithm/fixed/set_difference.hpp | 8 +- sprout/algorithm/fixed/set_intersection.hpp | 8 +- .../fixed/set_symmetric_difference.hpp | 8 +- sprout/algorithm/fixed/set_union.hpp | 8 +- sprout/algorithm/fixed/shuffle.hpp | 10 +-- sprout/algorithm/fixed/shuffle_result.hpp | 10 +-- sprout/algorithm/fixed/sort.hpp | 36 ++++---- sprout/algorithm/fixed/sort_heap.hpp | 6 +- sprout/algorithm/fixed/stable_partition.hpp | 2 +- .../algorithm/fixed/stable_partition_copy.hpp | 10 +-- sprout/algorithm/fixed/stable_sort.hpp | 26 +++--- sprout/algorithm/fixed/swap_element.hpp | 2 +- sprout/algorithm/fixed/swap_element_copy.hpp | 12 +-- sprout/algorithm/fixed/transform.hpp | 24 +++--- sprout/algorithm/fixed/unique.hpp | 4 +- sprout/algorithm/fixed/unique_copy.hpp | 12 +-- sprout/algorithm/includes.hpp | 4 +- sprout/algorithm/is_heap.hpp | 4 +- sprout/algorithm/is_heap_until.hpp | 6 +- sprout/algorithm/is_partitioned.hpp | 4 +- sprout/algorithm/is_permutation.hpp | 8 +- sprout/algorithm/is_sorted.hpp | 4 +- sprout/algorithm/is_sorted_until.hpp | 4 +- sprout/algorithm/lexicographical_compare.hpp | 4 +- sprout/algorithm/lower_bound.hpp | 4 +- sprout/algorithm/max.hpp | 4 +- sprout/algorithm/max_element.hpp | 6 +- sprout/algorithm/min.hpp | 4 +- sprout/algorithm/min_element.hpp | 6 +- sprout/algorithm/minmax.hpp | 4 +- sprout/algorithm/minmax_element.hpp | 6 +- sprout/algorithm/mismatch.hpp | 4 +- sprout/algorithm/none_of.hpp | 2 +- sprout/algorithm/partition_point.hpp | 4 +- sprout/algorithm/search.hpp | 4 +- sprout/algorithm/search_n.hpp | 4 +- sprout/algorithm/string/join.hpp | 14 ++-- sprout/algorithm/string/join2.hpp | 8 +- sprout/algorithm/upper_bound.hpp | 4 +- sprout/array.hpp | 20 ++--- sprout/breed/detail/as_lvalue.hpp | 4 +- sprout/breed/eval.hpp | 4 +- sprout/checksum/sha1.hpp | 2 +- sprout/container/begin.hpp | 8 +- sprout/container/deep_copy.hpp | 2 +- sprout/container/empty.hpp | 2 +- sprout/container/end.hpp | 8 +- sprout/container/fixed_size.hpp | 2 +- sprout/container/get_internal.hpp | 2 +- sprout/container/indexes.hpp | 30 +++++++ sprout/container/internal_deep_copy.hpp | 2 +- sprout/container/make.hpp | 2 +- sprout/container/metafunctions.hpp | 1 + sprout/container/remake.hpp | 2 +- sprout/container/size.hpp | 2 +- sprout/darkroom/cameras/simple_camera.hpp | 2 +- sprout/darkroom/colors/rgb.hpp | 8 +- sprout/darkroom/coords/vector.hpp | 22 ++--- sprout/darkroom/lights/point_light.hpp | 2 +- sprout/darkroom/objects/aa_plane.hpp | 2 +- sprout/darkroom/objects/intersect.hpp | 4 +- sprout/darkroom/objects/sphere.hpp | 2 +- sprout/darkroom/pixels/generate.hpp | 6 +- sprout/darkroom/rays/ray.hpp | 2 +- sprout/detail/container_complate.hpp | 12 +-- sprout/detail/container_complate_backward.hpp | 12 +-- sprout/detail/overlap_count.hpp | 8 +- sprout/detail/overlap_count_2.hpp | 4 +- sprout/detail/param_at.hpp | 4 +- .../functional/dft/detail/dft_element_gen.hpp | 2 +- sprout/functional/dft/dft_element.hpp | 4 +- sprout/functional/dft/fit/dft.hpp | 4 +- sprout/functional/dft/fit/idft.hpp | 4 +- sprout/functional/dft/fixed/dft.hpp | 6 +- sprout/functional/dft/fixed/idft.hpp | 6 +- sprout/functional/dft/idft_element.hpp | 4 +- sprout/functional/fft/fit/bitrev_table.hpp | 4 +- sprout/functional/fft/fixed/bitrev_table.hpp | 4 +- sprout/functional/hash/hash.hpp | 52 ++++++------ sprout/index_tuple.hpp | 49 +++++++++-- sprout/iterator/bytes_iterator.hpp | 12 +-- sprout/math/constants.hpp | 4 +- sprout/numeric/accumulate.hpp | 4 +- sprout/numeric/fit/adjacent_difference.hpp | 8 +- sprout/numeric/fit/iota.hpp | 4 +- sprout/numeric/fit/partial_sum.hpp | 8 +- sprout/numeric/fixed/adjacent_difference.hpp | 20 ++--- sprout/numeric/fixed/iota.hpp | 4 +- sprout/numeric/fixed/partial_sum.hpp | 20 ++--- sprout/numeric/inner_product.hpp | 4 +- sprout/operation/fit/append.hpp | 4 +- sprout/operation/fit/append_back.hpp | 2 +- sprout/operation/fit/append_front.hpp | 2 +- sprout/operation/fit/erase.hpp | 4 +- sprout/operation/fit/erase_n.hpp | 4 +- sprout/operation/fit/insert.hpp | 4 +- sprout/operation/fit/insert_n.hpp | 4 +- sprout/operation/fit/pop_back.hpp | 2 +- sprout/operation/fit/pop_back_n.hpp | 2 +- sprout/operation/fit/pop_front.hpp | 2 +- sprout/operation/fit/pop_front_n.hpp | 2 +- sprout/operation/fit/push_back.hpp | 2 +- sprout/operation/fit/push_back_n.hpp | 2 +- sprout/operation/fit/push_front.hpp | 2 +- sprout/operation/fit/push_front_n.hpp | 2 +- sprout/operation/fit/realign.hpp | 4 +- sprout/operation/fit/realign_to.hpp | 4 +- sprout/operation/fit/resize.hpp | 4 +- sprout/operation/fit/resize_backward.hpp | 4 +- sprout/operation/fit/set.hpp | 4 +- sprout/operation/fixed/append.hpp | 6 +- sprout/operation/fixed/append_back.hpp | 2 +- sprout/operation/fixed/append_front.hpp | 2 +- sprout/operation/fixed/erase.hpp | 6 +- sprout/operation/fixed/erase_n.hpp | 6 +- sprout/operation/fixed/insert.hpp | 6 +- sprout/operation/fixed/insert_n.hpp | 6 +- sprout/operation/fixed/pop_back.hpp | 2 +- sprout/operation/fixed/pop_back_n.hpp | 2 +- sprout/operation/fixed/pop_front.hpp | 2 +- sprout/operation/fixed/pop_front_n.hpp | 2 +- sprout/operation/fixed/push_back.hpp | 2 +- sprout/operation/fixed/push_back_n.hpp | 2 +- sprout/operation/fixed/push_front.hpp | 2 +- sprout/operation/fixed/push_front_n.hpp | 2 +- sprout/operation/fixed/realign.hpp | 8 +- sprout/operation/fixed/realign_to.hpp | 4 +- sprout/operation/fixed/resize.hpp | 8 +- sprout/operation/fixed/resize_backward.hpp | 8 +- sprout/operation/fixed/set.hpp | 6 +- sprout/pit.hpp | 12 +-- sprout/range/algorithm/adjacent_find.hpp | 8 +- sprout/range/algorithm/all_of.hpp | 2 +- sprout/range/algorithm/any_of.hpp | 2 +- sprout/range/algorithm/binary_search.hpp | 4 +- sprout/range/algorithm/count.hpp | 2 +- sprout/range/algorithm/count_if.hpp | 2 +- sprout/range/algorithm/equal.hpp | 4 +- sprout/range/algorithm/equal_range.hpp | 6 +- sprout/range/algorithm/find.hpp | 4 +- sprout/range/algorithm/find_end.hpp | 8 +- sprout/range/algorithm/find_first_of.hpp | 8 +- sprout/range/algorithm/find_if.hpp | 4 +- sprout/range/algorithm/find_if_not.hpp | 4 +- sprout/range/algorithm/fit/copy.hpp | 2 +- sprout/range/algorithm/fit/copy_backward.hpp | 2 +- sprout/range/algorithm/fit/copy_if.hpp | 2 +- sprout/range/algorithm/fit/merge.hpp | 4 +- sprout/range/algorithm/fit/partition_copy.hpp | 2 +- sprout/range/algorithm/fit/remove_copy.hpp | 2 +- sprout/range/algorithm/fit/remove_copy_if.hpp | 2 +- sprout/range/algorithm/fit/replace_copy.hpp | 2 +- .../range/algorithm/fit/replace_copy_if.hpp | 2 +- sprout/range/algorithm/fit/reverse_copy.hpp | 2 +- sprout/range/algorithm/fit/rotate_copy.hpp | 2 +- sprout/range/algorithm/fit/set_difference.hpp | 4 +- .../range/algorithm/fit/set_intersection.hpp | 4 +- .../fit/set_symmetric_difference.hpp | 4 +- sprout/range/algorithm/fit/set_union.hpp | 4 +- .../algorithm/fit/stable_partition_copy.hpp | 2 +- .../range/algorithm/fit/swap_element_copy.hpp | 2 +- sprout/range/algorithm/fit/transform.hpp | 4 +- sprout/range/algorithm/fit/unique_copy.hpp | 4 +- sprout/range/algorithm/fixed/copy.hpp | 2 +- .../range/algorithm/fixed/copy_backward.hpp | 2 +- sprout/range/algorithm/fixed/copy_if.hpp | 2 +- sprout/range/algorithm/fixed/merge.hpp | 4 +- .../range/algorithm/fixed/partition_copy.hpp | 2 +- sprout/range/algorithm/fixed/remove_copy.hpp | 2 +- .../range/algorithm/fixed/remove_copy_if.hpp | 2 +- sprout/range/algorithm/fixed/replace_copy.hpp | 2 +- .../range/algorithm/fixed/replace_copy_if.hpp | 2 +- sprout/range/algorithm/fixed/reverse_copy.hpp | 2 +- sprout/range/algorithm/fixed/rotate_copy.hpp | 2 +- .../range/algorithm/fixed/set_difference.hpp | 4 +- .../algorithm/fixed/set_intersection.hpp | 4 +- .../fixed/set_symmetric_difference.hpp | 4 +- sprout/range/algorithm/fixed/set_union.hpp | 4 +- .../algorithm/fixed/stable_partition_copy.hpp | 2 +- .../algorithm/fixed/swap_element_copy.hpp | 2 +- sprout/range/algorithm/fixed/transform.hpp | 4 +- sprout/range/algorithm/fixed/unique_copy.hpp | 4 +- sprout/range/algorithm/includes.hpp | 4 +- sprout/range/algorithm/is_heap.hpp | 4 +- sprout/range/algorithm/is_heap_until.hpp | 8 +- sprout/range/algorithm/is_partitioned.hpp | 2 +- sprout/range/algorithm/is_permutation.hpp | 4 +- sprout/range/algorithm/is_sorted.hpp | 4 +- sprout/range/algorithm/is_sorted_until.hpp | 8 +- .../algorithm/lexicographical_compare.hpp | 4 +- sprout/range/algorithm/lower_bound.hpp | 8 +- sprout/range/algorithm/max_element.hpp | 8 +- sprout/range/algorithm/min_element.hpp | 8 +- sprout/range/algorithm/minmax_element.hpp | 12 +-- sprout/range/algorithm/mismatch.hpp | 4 +- sprout/range/algorithm/none_of.hpp | 2 +- sprout/range/algorithm/partition_point.hpp | 2 +- sprout/range/algorithm/search.hpp | 8 +- sprout/range/algorithm/search_n.hpp | 8 +- sprout/range/algorithm/upper_bound.hpp | 8 +- sprout/range/numeric/accumulate.hpp | 4 +- .../range/numeric/fit/adjacent_difference.hpp | 4 +- sprout/range/numeric/fit/partial_sum.hpp | 4 +- .../numeric/fixed/adjacent_difference.hpp | 4 +- sprout/range/numeric/fixed/partial_sum.hpp | 4 +- sprout/range/numeric/inner_product.hpp | 4 +- sprout/string.hpp | 66 +++++++-------- sprout/sub_array.hpp | 82 +++++++++---------- sprout/tuple.hpp | 2 + sprout/tuple/algorithm/copy.hpp | 8 +- sprout/tuple/deep_copy.hpp | 2 +- sprout/tuple/functions.hpp | 1 + sprout/tuple/indexes.hpp | 30 +++++++ sprout/tuple/make.hpp | 2 +- sprout/tuple/metafunctions.hpp | 7 ++ sprout/tuple/operation/append_back.hpp | 4 +- sprout/tuple/operation/append_front.hpp | 4 +- sprout/tuple/operation/push_back.hpp | 4 +- sprout/tuple/operation/push_front.hpp | 4 +- sprout/tuple/remake.hpp | 2 +- sprout/tuple/tuple.hpp | 4 +- sprout/tuple/tuple_comparison.hpp | 12 +-- sprout/type/string/to_string_constant.hpp | 4 +- sprout/uuid/nil_generator.hpp | 2 +- sprout/uuid/uuid.hpp | 14 ++-- sprout/uuid/uuid_io.hpp | 10 +-- sprout/variant/apply_visitor.hpp | 2 +- sprout/weed/attr_cnv/bitwise_or.hpp | 26 +++--- sprout/weed/attr_cnv/modulus.hpp | 2 +- sprout/weed/attr_cnv/negate.hpp | 2 +- sprout/weed/attr_cnv/shift_left.hpp | 22 ++--- sprout/weed/expr/eval.hpp | 2 +- sprout/weed/expr/make_expr.hpp | 2 +- sprout/weed/expr/make_terminal.hpp | 4 +- sprout/weed/expr/make_terminal_or_expr.hpp | 4 +- sprout/weed/operator/address_of.hpp | 2 +- sprout/weed/operator/bitwise_or.hpp | 2 +- sprout/weed/operator/dereference.hpp | 2 +- sprout/weed/operator/logical_not.hpp | 2 +- sprout/weed/operator/minus.hpp | 2 +- sprout/weed/operator/modulus.hpp | 2 +- sprout/weed/operator/negate.hpp | 2 +- sprout/weed/operator/shift_left.hpp | 2 +- sprout/weed/operator/unary_plus.hpp | 2 +- sprout/weed/parse.hpp | 2 +- sprout/weed/parser/string/string.hpp | 4 +- 340 files changed, 1087 insertions(+), 979 deletions(-) create mode 100644 sprout/container/indexes.hpp create mode 100644 sprout/tuple/indexes.hpp create mode 100644 sprout/tuple/metafunctions.hpp diff --git a/sprout/adapt/sscrisk/cel/array.hpp b/sprout/adapt/sscrisk/cel/array.hpp index 7516ceed..71c0fbfa 100644 --- a/sprout/adapt/sscrisk/cel/array.hpp +++ b/sprout/adapt/sscrisk/cel/array.hpp @@ -31,11 +31,11 @@ namespace sprout { // begin // template - typename sprout::container_traits >::iterator begin(sscrisk::cel::array& cont) { + inline typename sprout::container_traits >::iterator begin(sscrisk::cel::array& cont) { return typename sprout::container_traits >::iterator(cont, 0); } template - SPROUT_CONSTEXPR typename sprout::container_traits >::const_iterator begin(sscrisk::cel::array const& cont) { + inline SPROUT_CONSTEXPR typename sprout::container_traits >::const_iterator begin(sscrisk::cel::array const& cont) { return typename sprout::container_traits >::const_iterator(cont, 0); } @@ -43,7 +43,7 @@ namespace sprout { // cbegin // template - SPROUT_CONSTEXPR typename sprout::container_traits >::const_iterator cbegin(sscrisk::cel::array const& cont) { + inline SPROUT_CONSTEXPR typename sprout::container_traits >::const_iterator cbegin(sscrisk::cel::array const& cont) { return typename sprout::container_traits >::const_iterator(cont, 0); } @@ -51,11 +51,11 @@ namespace sprout { // end // template - typename sprout::container_traits >::iterator end(sscrisk::cel::array& cont) { + inline typename sprout::container_traits >::iterator end(sscrisk::cel::array& cont) { return typename sprout::container_traits >::iterator(cont, cont.size()); } template - SPROUT_CONSTEXPR typename sprout::container_traits >::const_iterator end(sscrisk::cel::array const& cont) { + inline SPROUT_CONSTEXPR typename sprout::container_traits >::const_iterator end(sscrisk::cel::array const& cont) { return typename sprout::container_traits >::const_iterator(cont, cont.size()); } @@ -63,7 +63,7 @@ namespace sprout { // cend // template - SPROUT_CONSTEXPR typename sprout::container_traits >::const_iterator cend(sscrisk::cel::array const& cont) { + inline SPROUT_CONSTEXPR typename sprout::container_traits >::const_iterator cend(sscrisk::cel::array const& cont) { return typename sprout::container_traits >::const_iterator(cont, cont.size()); } #endif diff --git a/sprout/algorithm/adjacent_find.hpp b/sprout/algorithm/adjacent_find.hpp index 3623db02..a96a5c9a 100644 --- a/sprout/algorithm/adjacent_find.hpp +++ b/sprout/algorithm/adjacent_find.hpp @@ -11,7 +11,7 @@ namespace sprout { // 25.2.8 Adjacent find template - SPROUT_CONSTEXPR ForwardIterator adjacent_find(ForwardIterator first, ForwardIterator last, BinaryPredicate pred) { + inline SPROUT_CONSTEXPR ForwardIterator adjacent_find(ForwardIterator first, ForwardIterator last, BinaryPredicate pred) { return first == last || sprout::next(first) == last ? last : pred(*first, *(sprout::next(first))) != false ? first : sprout::adjacent_find(sprout::next(first), last, pred) @@ -19,7 +19,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR ForwardIterator adjacent_find(ForwardIterator first, ForwardIterator last) { + inline SPROUT_CONSTEXPR ForwardIterator adjacent_find(ForwardIterator first, ForwardIterator last) { return sprout::adjacent_find( first, last, diff --git a/sprout/algorithm/all_of.hpp b/sprout/algorithm/all_of.hpp index f2ea54b9..c2e2dbda 100644 --- a/sprout/algorithm/all_of.hpp +++ b/sprout/algorithm/all_of.hpp @@ -9,7 +9,7 @@ namespace sprout { // 25.2.1 All of template - SPROUT_CONSTEXPR bool all_of(InputIterator first, InputIterator last, Predicate pred) { + inline SPROUT_CONSTEXPR bool all_of(InputIterator first, InputIterator last, Predicate pred) { return first == last ? true : pred(*first) == true && sprout::all_of(sprout::next(first), last, pred) ; diff --git a/sprout/algorithm/any_of.hpp b/sprout/algorithm/any_of.hpp index fe988d8c..97ccf075 100644 --- a/sprout/algorithm/any_of.hpp +++ b/sprout/algorithm/any_of.hpp @@ -9,7 +9,7 @@ namespace sprout { // 25.2.2 Any of template - SPROUT_CONSTEXPR bool any_of(InputIterator first, InputIterator last, Predicate pred) { + inline SPROUT_CONSTEXPR bool any_of(InputIterator first, InputIterator last, Predicate pred) { return first == last ? false : pred(*first) == true || sprout::any_of(sprout::next(first), last, pred) ; diff --git a/sprout/algorithm/binary_search.hpp b/sprout/algorithm/binary_search.hpp index 57d670c9..2181a63b 100644 --- a/sprout/algorithm/binary_search.hpp +++ b/sprout/algorithm/binary_search.hpp @@ -10,7 +10,7 @@ namespace sprout { // 25.4.3.4 binary_search template - SPROUT_CONSTEXPR bool binary_search(ForwardIterator first, ForwardIterator last, T const& value) { + inline SPROUT_CONSTEXPR bool binary_search(ForwardIterator first, ForwardIterator last, T const& value) { return first == last ? false : sprout::next(first) == last ? !(*first < value) && !(value < *first) ? true : false : *sprout::next(first, NS_SSCRISK_CEL_OR_SPROUT::distance(first, last) / 2) < value @@ -22,7 +22,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR bool binary_search(ForwardIterator first, ForwardIterator last, T const& value, Compare comp) { + inline SPROUT_CONSTEXPR bool binary_search(ForwardIterator first, ForwardIterator last, T const& value, Compare comp) { return first == last ? false : sprout::next(first) == last ? !comp(*first, value) && !comp(value, *first) ? true : false : comp(*sprout::next(first, NS_SSCRISK_CEL_OR_SPROUT::distance(first, last) / 2), value) diff --git a/sprout/algorithm/count.hpp b/sprout/algorithm/count.hpp index 131df9c8..c5cacdef 100644 --- a/sprout/algorithm/count.hpp +++ b/sprout/algorithm/count.hpp @@ -10,7 +10,7 @@ namespace sprout { // 25.2.9 Count template - SPROUT_CONSTEXPR typename std::iterator_traits::difference_type + inline SPROUT_CONSTEXPR typename std::iterator_traits::difference_type count(InputIterator first, InputIterator last, T const& value) { return first == last ? 0 : (*first == value ? 1 : 0) + sprout::count(sprout::next(first), last, value) diff --git a/sprout/algorithm/count_if.hpp b/sprout/algorithm/count_if.hpp index 3f428964..25bd2059 100644 --- a/sprout/algorithm/count_if.hpp +++ b/sprout/algorithm/count_if.hpp @@ -10,7 +10,7 @@ namespace sprout { // 25.2.9 Count template - SPROUT_CONSTEXPR typename std::iterator_traits::difference_type + inline SPROUT_CONSTEXPR typename std::iterator_traits::difference_type count_if(InputIterator first, InputIterator last, Predicate pred) { return first == last ? 0 : (pred(*first) != false ? 1 : 0) + sprout::count_if(sprout::next(first), last, pred) diff --git a/sprout/algorithm/equal.hpp b/sprout/algorithm/equal.hpp index b083b96d..2db3e862 100644 --- a/sprout/algorithm/equal.hpp +++ b/sprout/algorithm/equal.hpp @@ -9,7 +9,7 @@ namespace sprout { // 25.2.11 Equal template - SPROUT_CONSTEXPR bool equal( + inline SPROUT_CONSTEXPR bool equal( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2 @@ -21,7 +21,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR bool equal( + inline SPROUT_CONSTEXPR bool equal( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/equal_range.hpp b/sprout/algorithm/equal_range.hpp index d22dd418..69624853 100644 --- a/sprout/algorithm/equal_range.hpp +++ b/sprout/algorithm/equal_range.hpp @@ -11,7 +11,7 @@ namespace sprout { // 25.4.3.3 equal_range template - SPROUT_CONSTEXPR sprout::pair equal_range( + inline SPROUT_CONSTEXPR sprout::pair equal_range( ForwardIterator first, ForwardIterator last, T const& value @@ -21,7 +21,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR pair equal_range( + inline SPROUT_CONSTEXPR pair equal_range( ForwardIterator first, ForwardIterator last, T const& value, diff --git a/sprout/algorithm/find.hpp b/sprout/algorithm/find.hpp index 592be7e2..32131add 100644 --- a/sprout/algorithm/find.hpp +++ b/sprout/algorithm/find.hpp @@ -9,7 +9,7 @@ namespace sprout { // 25.2.5 Find template - SPROUT_CONSTEXPR InputIterator find(InputIterator first, InputIterator last, T const& value) { + inline SPROUT_CONSTEXPR InputIterator find(InputIterator first, InputIterator last, T const& value) { return first == last || *first == value ? first : sprout::find(sprout::next(first), last, value) ; diff --git a/sprout/algorithm/find_end.hpp b/sprout/algorithm/find_end.hpp index 0f1a6ed1..457ab03b 100644 --- a/sprout/algorithm/find_end.hpp +++ b/sprout/algorithm/find_end.hpp @@ -24,7 +24,7 @@ namespace sprout { // 25.2.6 Find end template - SPROUT_CONSTEXPR ForwardIterator1 find_end( + inline SPROUT_CONSTEXPR ForwardIterator1 find_end( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2, @@ -41,7 +41,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR ForwardIterator1 find_end( + inline SPROUT_CONSTEXPR ForwardIterator1 find_end( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2, diff --git a/sprout/algorithm/find_first_of.hpp b/sprout/algorithm/find_first_of.hpp index 5b1178ae..b27fdede 100644 --- a/sprout/algorithm/find_first_of.hpp +++ b/sprout/algorithm/find_first_of.hpp @@ -10,7 +10,7 @@ namespace sprout { // 25.2.7 Find first template - SPROUT_CONSTEXPR ForwardIterator1 find_first_of( + inline SPROUT_CONSTEXPR ForwardIterator1 find_first_of( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2, @@ -24,7 +24,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR ForwardIterator1 find_first_of( + inline SPROUT_CONSTEXPR ForwardIterator1 find_first_of( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2, diff --git a/sprout/algorithm/find_if.hpp b/sprout/algorithm/find_if.hpp index 0f64148e..c52f939d 100644 --- a/sprout/algorithm/find_if.hpp +++ b/sprout/algorithm/find_if.hpp @@ -9,7 +9,7 @@ namespace sprout { // 25.2.5 Find template - SPROUT_CONSTEXPR InputIterator find_if(InputIterator first, InputIterator last, Predicate pred) { + inline SPROUT_CONSTEXPR InputIterator find_if(InputIterator first, InputIterator last, Predicate pred) { return first == last || pred(*first) != false ? first : sprout::find_if(sprout::next(first), last, pred) ; diff --git a/sprout/algorithm/find_if_not.hpp b/sprout/algorithm/find_if_not.hpp index b2c80e1f..e63336dd 100644 --- a/sprout/algorithm/find_if_not.hpp +++ b/sprout/algorithm/find_if_not.hpp @@ -9,7 +9,7 @@ namespace sprout { // 25.2.5 Find template - SPROUT_CONSTEXPR InputIterator find_if_not(InputIterator first, InputIterator last, Predicate pred) + inline SPROUT_CONSTEXPR InputIterator find_if_not(InputIterator first, InputIterator last, Predicate pred) { return first == last || pred(*first) == false ? first : sprout::find_if_not(sprout::next(first), last, pred) diff --git a/sprout/algorithm/fit/bogo_sort.hpp b/sprout/algorithm/fit/bogo_sort.hpp index 95f4a346..c1d95797 100644 --- a/sprout/algorithm/fit/bogo_sort.hpp +++ b/sprout/algorithm/fit/bogo_sort.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type bogo_sort_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type bogo_sort_impl( Container const& cont, UniformRandomNumberGenerator&& g, Compare comp, @@ -30,7 +30,7 @@ namespace sprout { // bogo_sort // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type bogo_sort( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type bogo_sort( Container const& cont, UniformRandomNumberGenerator&& g, Compare comp @@ -46,7 +46,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type bogo_sort_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type bogo_sort_impl( Container const& cont, UniformRandomNumberGenerator&& g, typename sprout::container_traits::difference_type offset @@ -63,7 +63,7 @@ namespace sprout { // bogo_sort // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type bogo_sort( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type bogo_sort( Container const& cont, UniformRandomNumberGenerator&& g ) diff --git a/sprout/algorithm/fit/bogo_sort_result.hpp b/sprout/algorithm/fit/bogo_sort_result.hpp index 3f3c0fa6..e091fe1c 100644 --- a/sprout/algorithm/fit/bogo_sort_result.hpp +++ b/sprout/algorithm/fit/bogo_sort_result.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fit::result_of::algorithm::type, typename std::decay::type > bogo_sort_result_impl_1( @@ -36,7 +36,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fit::result_of::algorithm::type, typename std::decay::type > bogo_sort_result_impl( @@ -56,7 +56,7 @@ namespace sprout { // bogo_sort_result // template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fit::result_of::algorithm::type, typename std::decay::type > bogo_sort_result( @@ -75,7 +75,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fit::result_of::algorithm::type, typename std::decay::type > bogo_sort_result_impl( @@ -94,7 +94,7 @@ namespace sprout { // bogo_sort_result // template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fit::result_of::algorithm::type, typename std::decay::type > bogo_sort_result( diff --git a/sprout/algorithm/fit/copy.hpp b/sprout/algorithm/fit/copy.hpp index 55f92e4b..0e7f2faf 100644 --- a/sprout/algorithm/fit/copy.hpp +++ b/sprout/algorithm/fit/copy.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type copy_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type copy_impl( InputIterator first, InputIterator last, Result const& result, @@ -32,7 +32,7 @@ namespace sprout { // copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type copy( InputIterator first, InputIterator last, Result const& result diff --git a/sprout/algorithm/fit/copy_backward.hpp b/sprout/algorithm/fit/copy_backward.hpp index 39ba0c74..90cfeb53 100644 --- a/sprout/algorithm/fit/copy_backward.hpp +++ b/sprout/algorithm/fit/copy_backward.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type copy_backward_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type copy_backward_impl( BidirectionalIterator first, BidirectionalIterator last, Result const& result, @@ -32,7 +32,7 @@ namespace sprout { // copy_backward // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type copy_backward( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type copy_backward( BidirectionalIterator first, BidirectionalIterator last, Result const& result diff --git a/sprout/algorithm/fit/copy_if.hpp b/sprout/algorithm/fit/copy_if.hpp index e898c922..2a312488 100644 --- a/sprout/algorithm/fit/copy_if.hpp +++ b/sprout/algorithm/fit/copy_if.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type copy_if_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type copy_if_impl( InputIterator first, InputIterator last, Result const& result, @@ -32,7 +32,7 @@ namespace sprout { // copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type copy_if( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type copy_if( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fit/copy_n.hpp b/sprout/algorithm/fit/copy_n.hpp index 761dda5f..53b1722f 100644 --- a/sprout/algorithm/fit/copy_n.hpp +++ b/sprout/algorithm/fit/copy_n.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type copy_n_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type copy_n_impl( InputIterator first, Size n, Result const& result, @@ -31,7 +31,7 @@ namespace sprout { // copy_n // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type copy_n( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type copy_n( InputIterator first, Size n, Result const& result diff --git a/sprout/algorithm/fit/fill.hpp b/sprout/algorithm/fit/fill.hpp index 204f4e56..f4d9b585 100644 --- a/sprout/algorithm/fit/fill.hpp +++ b/sprout/algorithm/fit/fill.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type fill_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type fill_impl( Container const& cont, T const& value, typename sprout::container_traits::difference_type offset @@ -29,7 +29,7 @@ namespace sprout { // fill // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type fill( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type fill( Container const& cont, T const& value ) diff --git a/sprout/algorithm/fit/fill_n.hpp b/sprout/algorithm/fit/fill_n.hpp index 4eca82e6..9b6e2374 100644 --- a/sprout/algorithm/fit/fill_n.hpp +++ b/sprout/algorithm/fit/fill_n.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type fill_n_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type fill_n_impl( Container const& cont, Size n, T const& value, @@ -31,7 +31,7 @@ namespace sprout { // fill_n // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type fill_n( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type fill_n( Container const& cont, Size n, T const& value diff --git a/sprout/algorithm/fit/generate.hpp b/sprout/algorithm/fit/generate.hpp index e77db661..95684707 100644 --- a/sprout/algorithm/fit/generate.hpp +++ b/sprout/algorithm/fit/generate.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type generate_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type generate_impl( Container const& cont, Generator gen, typename sprout::container_traits::difference_type offset, @@ -30,7 +30,7 @@ namespace sprout { // generate // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type generate( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type generate( Container const& cont, Generator gen, Inits const&... inits diff --git a/sprout/algorithm/fit/generate_n.hpp b/sprout/algorithm/fit/generate_n.hpp index 39faa010..3b63be64 100644 --- a/sprout/algorithm/fit/generate_n.hpp +++ b/sprout/algorithm/fit/generate_n.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type generate_n_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type generate_n_impl( Container const& cont, Size n, Generator gen, @@ -32,7 +32,7 @@ namespace sprout { // generate_n // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type generate_n( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type generate_n( Container const& cont, Size n, Generator gen, diff --git a/sprout/algorithm/fit/inplace_merge.hpp b/sprout/algorithm/fit/inplace_merge.hpp index 8ae72a4f..00af1993 100644 --- a/sprout/algorithm/fit/inplace_merge.hpp +++ b/sprout/algorithm/fit/inplace_merge.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type inplace_merge_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type inplace_merge_impl( Container const& cont, typename sprout::container_traits::const_iterator middle, Compare comp, @@ -30,7 +30,7 @@ namespace sprout { // inplace_merge // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type inplace_merge( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type inplace_merge( Container const& cont, typename sprout::container_traits::const_iterator middle, Compare comp @@ -41,7 +41,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type inplace_merge_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type inplace_merge_impl( Container const& cont, typename sprout::container_traits::const_iterator middle, typename sprout::container_traits::difference_type offset @@ -58,7 +58,7 @@ namespace sprout { // inplace_merge // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type inplace_merge( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type inplace_merge( Container const& cont, typename sprout::container_traits::const_iterator middle ) diff --git a/sprout/algorithm/fit/make_heap.hpp b/sprout/algorithm/fit/make_heap.hpp index da54ea40..14592238 100644 --- a/sprout/algorithm/fit/make_heap.hpp +++ b/sprout/algorithm/fit/make_heap.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type make_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type make_heap_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset @@ -29,7 +29,7 @@ namespace sprout { // make_heap // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type make_heap( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type make_heap( Container const& cont, Compare comp ) @@ -39,7 +39,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type make_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type make_heap_impl( Container const& cont, typename sprout::container_traits::difference_type offset ) @@ -55,7 +55,7 @@ namespace sprout { // make_heap // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type make_heap( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type make_heap( Container const& cont ) { diff --git a/sprout/algorithm/fit/make_partial_heap.hpp b/sprout/algorithm/fit/make_partial_heap.hpp index f3962afa..3d414173 100644 --- a/sprout/algorithm/fit/make_partial_heap.hpp +++ b/sprout/algorithm/fit/make_partial_heap.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type make_partial_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type make_partial_heap_impl( Container const& cont, typename sprout::container_traits::const_iterator middle, Compare comp, @@ -31,7 +31,7 @@ namespace sprout { // make_partial_heap // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type make_partial_heap( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type make_partial_heap( Container const& cont, typename sprout::container_traits::const_iterator middle, Compare comp @@ -42,7 +42,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type make_partial_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type make_partial_heap_impl( Container const& cont, typename sprout::container_traits::const_iterator middle, typename sprout::container_traits::difference_type offset @@ -59,7 +59,7 @@ namespace sprout { // make_partial_heap // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type make_partial_heap( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type make_partial_heap( Container const& cont, typename sprout::container_traits::const_iterator middle ) diff --git a/sprout/algorithm/fit/merge.hpp b/sprout/algorithm/fit/merge.hpp index 6ab11019..c79eb089 100644 --- a/sprout/algorithm/fit/merge.hpp +++ b/sprout/algorithm/fit/merge.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type merge_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type merge_impl( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -38,7 +38,7 @@ namespace sprout { // merge // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type merge( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type merge( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -52,7 +52,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type merge_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type merge_impl( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -75,7 +75,7 @@ namespace sprout { // merge // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type merge( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type merge( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/fit/nth_element.hpp b/sprout/algorithm/fit/nth_element.hpp index 57b6e8b1..cc0ecdd8 100644 --- a/sprout/algorithm/fit/nth_element.hpp +++ b/sprout/algorithm/fit/nth_element.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type nth_element_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type nth_element_impl( Container const& cont, typename sprout::container_traits::const_iterator nth, Compare comp, @@ -31,7 +31,7 @@ namespace sprout { // nth_element // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type nth_element( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type nth_element( Container const& cont, typename sprout::container_traits::const_iterator nth, Compare comp @@ -42,7 +42,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type nth_element_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type nth_element_impl( Container const& cont, typename sprout::container_traits::const_iterator nth, typename sprout::container_traits::difference_type offset @@ -59,7 +59,7 @@ namespace sprout { // nth_element // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type nth_element( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type nth_element( Container const& cont, typename sprout::container_traits::const_iterator nth ) diff --git a/sprout/algorithm/fit/partial_sort.hpp b/sprout/algorithm/fit/partial_sort.hpp index cc9d531b..8ed33578 100644 --- a/sprout/algorithm/fit/partial_sort.hpp +++ b/sprout/algorithm/fit/partial_sort.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partial_sort_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partial_sort_impl( Container const& cont, typename sprout::container_traits::const_iterator middle, Compare comp, @@ -31,7 +31,7 @@ namespace sprout { // partial_sort // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partial_sort( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partial_sort( Container const& cont, typename sprout::container_traits::const_iterator middle, Compare comp @@ -42,7 +42,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partial_sort_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partial_sort_impl( Container const& cont, typename sprout::container_traits::const_iterator middle, typename sprout::container_traits::difference_type offset @@ -59,7 +59,7 @@ namespace sprout { // partial_sort // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partial_sort( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partial_sort( Container const& cont, typename sprout::container_traits::const_iterator middle ) diff --git a/sprout/algorithm/fit/partition.hpp b/sprout/algorithm/fit/partition.hpp index 335260ab..b4024b70 100644 --- a/sprout/algorithm/fit/partition.hpp +++ b/sprout/algorithm/fit/partition.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partition_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partition_impl( Container const& cont, Predicate pred, typename sprout::container_traits::difference_type offset @@ -30,7 +30,7 @@ namespace sprout { // partition // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partition( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partition( Container const& cont, Predicate pred ) diff --git a/sprout/algorithm/fit/partition_copy.hpp b/sprout/algorithm/fit/partition_copy.hpp index 32322be4..c9a1f77b 100644 --- a/sprout/algorithm/fit/partition_copy.hpp +++ b/sprout/algorithm/fit/partition_copy.hpp @@ -15,7 +15,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partition_copy_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partition_copy_impl( InputIterator first, InputIterator last, Result const& result, @@ -41,7 +41,7 @@ namespace sprout { // partition_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partition_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partition_copy( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fit/pop_heap.hpp b/sprout/algorithm/fit/pop_heap.hpp index 3a3be0f1..ab3149f7 100644 --- a/sprout/algorithm/fit/pop_heap.hpp +++ b/sprout/algorithm/fit/pop_heap.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type pop_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type pop_heap_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset @@ -29,7 +29,7 @@ namespace sprout { // pop_heap // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type pop_heap( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type pop_heap( Container const& cont, Compare comp ) @@ -39,7 +39,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type pop_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type pop_heap_impl( Container const& cont, typename sprout::container_traits::difference_type offset ) @@ -55,7 +55,7 @@ namespace sprout { // pop_heap // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type pop_heap( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type pop_heap( Container const& cont ) { diff --git a/sprout/algorithm/fit/push_heap.hpp b/sprout/algorithm/fit/push_heap.hpp index 44da3413..9c8142ff 100644 --- a/sprout/algorithm/fit/push_heap.hpp +++ b/sprout/algorithm/fit/push_heap.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type push_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type push_heap_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset @@ -29,7 +29,7 @@ namespace sprout { // push_heap // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type push_heap( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type push_heap( Container const& cont, Compare comp ) @@ -39,7 +39,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type push_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type push_heap_impl( Container const& cont, typename sprout::container_traits::difference_type offset ) @@ -55,7 +55,7 @@ namespace sprout { // push_heap // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type push_heap( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type push_heap( Container const& cont ) { diff --git a/sprout/algorithm/fit/remove.hpp b/sprout/algorithm/fit/remove.hpp index 44d7ec38..ee3b5022 100644 --- a/sprout/algorithm/fit/remove.hpp +++ b/sprout/algorithm/fit/remove.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type remove_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type remove_impl( Container const& cont, T const& value, typename sprout::container_traits::difference_type offset @@ -30,7 +30,7 @@ namespace sprout { // remove // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type remove( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type remove( Container const& cont, T const& value ) diff --git a/sprout/algorithm/fit/remove_copy.hpp b/sprout/algorithm/fit/remove_copy.hpp index d085bacc..210fffad 100644 --- a/sprout/algorithm/fit/remove_copy.hpp +++ b/sprout/algorithm/fit/remove_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type remove_copy_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type remove_copy_impl( InputIterator first, InputIterator last, Result const& result, @@ -33,7 +33,7 @@ namespace sprout { // remove_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type remove_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type remove_copy( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fit/remove_copy_if.hpp b/sprout/algorithm/fit/remove_copy_if.hpp index 446d3679..053fe216 100644 --- a/sprout/algorithm/fit/remove_copy_if.hpp +++ b/sprout/algorithm/fit/remove_copy_if.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type remove_copy_if_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type remove_copy_if_impl( InputIterator first, InputIterator last, Result const& result, @@ -33,7 +33,7 @@ namespace sprout { // remove_copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type remove_copy_if( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type remove_copy_if( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fit/remove_if.hpp b/sprout/algorithm/fit/remove_if.hpp index 0614a6a5..1c61dc29 100644 --- a/sprout/algorithm/fit/remove_if.hpp +++ b/sprout/algorithm/fit/remove_if.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type remove_if_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type remove_if_impl( Container const& cont, Predicate pred, typename sprout::container_traits::difference_type offset @@ -30,7 +30,7 @@ namespace sprout { // remove_if // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type remove_if( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type remove_if( Container const& cont, Predicate pred ) diff --git a/sprout/algorithm/fit/replace.hpp b/sprout/algorithm/fit/replace.hpp index 4c715272..6758cb61 100644 --- a/sprout/algorithm/fit/replace.hpp +++ b/sprout/algorithm/fit/replace.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type replace_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type replace_impl( Container const& cont, T const& old_value, T const& new_value, @@ -30,7 +30,7 @@ namespace sprout { // replace // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type replace( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type replace( Container const& cont, T const& old_value, T const& new_value diff --git a/sprout/algorithm/fit/replace_copy.hpp b/sprout/algorithm/fit/replace_copy.hpp index 4a1d04ef..56e022b7 100644 --- a/sprout/algorithm/fit/replace_copy.hpp +++ b/sprout/algorithm/fit/replace_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type replace_copy_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type replace_copy_impl( InputIterator first, InputIterator last, Result const& result, @@ -34,7 +34,7 @@ namespace sprout { // replace_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type replace_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type replace_copy( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fit/replace_copy_if.hpp b/sprout/algorithm/fit/replace_copy_if.hpp index b90b175e..baaf45cf 100644 --- a/sprout/algorithm/fit/replace_copy_if.hpp +++ b/sprout/algorithm/fit/replace_copy_if.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type replace_copy_if_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type replace_copy_if_impl( InputIterator first, InputIterator last, Result const& result, @@ -34,7 +34,7 @@ namespace sprout { // replace_copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type replace_copy_if( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type replace_copy_if( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fit/replace_if.hpp b/sprout/algorithm/fit/replace_if.hpp index 1b350e1e..86b1445d 100644 --- a/sprout/algorithm/fit/replace_if.hpp +++ b/sprout/algorithm/fit/replace_if.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type replace_if_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type replace_if_impl( Container const& cont, Predicate pred, T const& new_value, @@ -30,7 +30,7 @@ namespace sprout { // replace_if // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type replace_if( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type replace_if( Container const& cont, Predicate pred, T const& new_value diff --git a/sprout/algorithm/fit/reverse.hpp b/sprout/algorithm/fit/reverse.hpp index f1983388..fee0a737 100644 --- a/sprout/algorithm/fit/reverse.hpp +++ b/sprout/algorithm/fit/reverse.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type reverse_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type reverse_impl( Container const& cont, typename sprout::container_traits::difference_type offset ) @@ -28,7 +28,7 @@ namespace sprout { // reverse // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type reverse( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type reverse( Container const& cont ) { diff --git a/sprout/algorithm/fit/reverse_copy.hpp b/sprout/algorithm/fit/reverse_copy.hpp index da347831..87f62f55 100644 --- a/sprout/algorithm/fit/reverse_copy.hpp +++ b/sprout/algorithm/fit/reverse_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type reverse_copy_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type reverse_copy_impl( BidirectionalIterator first, BidirectionalIterator last, Result const& result, @@ -32,7 +32,7 @@ namespace sprout { // reverse_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type reverse_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type reverse_copy( BidirectionalIterator first, BidirectionalIterator last, Result const& result diff --git a/sprout/algorithm/fit/rotate.hpp b/sprout/algorithm/fit/rotate.hpp index a539b2a1..725e6126 100644 --- a/sprout/algorithm/fit/rotate.hpp +++ b/sprout/algorithm/fit/rotate.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type rotate_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type rotate_impl( Container const& cont, typename sprout::container_traits::const_iterator middle, typename sprout::container_traits::difference_type offset @@ -29,7 +29,7 @@ namespace sprout { // rotate // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type rotate( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type rotate( Container const& cont, typename sprout::container_traits::const_iterator middle ) diff --git a/sprout/algorithm/fit/rotate_copy.hpp b/sprout/algorithm/fit/rotate_copy.hpp index 521f335c..a1dffafe 100644 --- a/sprout/algorithm/fit/rotate_copy.hpp +++ b/sprout/algorithm/fit/rotate_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type rotate_copy_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type rotate_copy_impl( ForwardIterator first, ForwardIterator middle, ForwardIterator last, @@ -33,7 +33,7 @@ namespace sprout { // rotate_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type rotate_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type rotate_copy( ForwardIterator first, ForwardIterator middle, ForwardIterator last, diff --git a/sprout/algorithm/fit/set_difference.hpp b/sprout/algorithm/fit/set_difference.hpp index 6a431b09..e9d759cb 100644 --- a/sprout/algorithm/fit/set_difference.hpp +++ b/sprout/algorithm/fit/set_difference.hpp @@ -15,7 +15,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_difference_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_difference_impl( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -41,7 +41,7 @@ namespace sprout { // set_difference // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_difference( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_difference( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -55,7 +55,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_difference_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_difference_impl( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -80,7 +80,7 @@ namespace sprout { // set_difference // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_difference( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_difference( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/fit/set_intersection.hpp b/sprout/algorithm/fit/set_intersection.hpp index b00471d5..9d919fa3 100644 --- a/sprout/algorithm/fit/set_intersection.hpp +++ b/sprout/algorithm/fit/set_intersection.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_intersection_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_intersection_impl( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -38,7 +38,7 @@ namespace sprout { // set_intersection // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_intersection( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_intersection( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -52,7 +52,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_intersection_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_intersection_impl( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -75,7 +75,7 @@ namespace sprout { // set_intersection // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_intersection( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_intersection( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/fit/set_symmetric_difference.hpp b/sprout/algorithm/fit/set_symmetric_difference.hpp index e80083b1..98fd3468 100644 --- a/sprout/algorithm/fit/set_symmetric_difference.hpp +++ b/sprout/algorithm/fit/set_symmetric_difference.hpp @@ -15,7 +15,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_symmetric_difference_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_symmetric_difference_impl( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -42,7 +42,7 @@ namespace sprout { // set_symmetric_difference // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_symmetric_difference( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_symmetric_difference( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -56,7 +56,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_symmetric_difference_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_symmetric_difference_impl( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -82,7 +82,7 @@ namespace sprout { // set_symmetric_difference // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_symmetric_difference( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_symmetric_difference( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/fit/set_union.hpp b/sprout/algorithm/fit/set_union.hpp index a580a476..ed9f7448 100644 --- a/sprout/algorithm/fit/set_union.hpp +++ b/sprout/algorithm/fit/set_union.hpp @@ -15,7 +15,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_union_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_union_impl( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -42,7 +42,7 @@ namespace sprout { // set_union // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_union( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_union( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -56,7 +56,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_union_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_union_impl( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -82,7 +82,7 @@ namespace sprout { // set_union // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type set_union( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type set_union( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/fit/shuffle.hpp b/sprout/algorithm/fit/shuffle.hpp index f52ad591..85f0399c 100644 --- a/sprout/algorithm/fit/shuffle.hpp +++ b/sprout/algorithm/fit/shuffle.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type shuffle_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type shuffle_impl( Container const& cont, UniformRandomNumberGenerator&& g, typename sprout::container_traits::difference_type offset @@ -30,7 +30,7 @@ namespace sprout { // shuffle // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type shuffle( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type shuffle( Container const& cont, UniformRandomNumberGenerator&& g ) diff --git a/sprout/algorithm/fit/shuffle_result.hpp b/sprout/algorithm/fit/shuffle_result.hpp index 55730362..d0defecb 100644 --- a/sprout/algorithm/fit/shuffle_result.hpp +++ b/sprout/algorithm/fit/shuffle_result.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fit::result_of::algorithm::type, typename std::decay::type > shuffle_result_impl_1( @@ -36,7 +36,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fit::result_of::algorithm::type, typename std::decay::type > shuffle_result_impl( @@ -55,7 +55,7 @@ namespace sprout { // shuffle_result // template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fit::result_of::algorithm::type, typename std::decay::type > shuffle_result( diff --git a/sprout/algorithm/fit/sort.hpp b/sprout/algorithm/fit/sort.hpp index c8f7577c..b71256ed 100644 --- a/sprout/algorithm/fit/sort.hpp +++ b/sprout/algorithm/fit/sort.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type sort_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type sort_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset @@ -29,7 +29,7 @@ namespace sprout { // sort // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type sort( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type sort( Container const& cont, Compare comp ) @@ -39,7 +39,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type sort_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type sort_impl( Container const& cont, typename sprout::container_traits::difference_type offset ) @@ -55,7 +55,7 @@ namespace sprout { // sort // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type sort( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type sort( Container const& cont ) { diff --git a/sprout/algorithm/fit/sort_heap.hpp b/sprout/algorithm/fit/sort_heap.hpp index 6c39a4ec..540a2a76 100644 --- a/sprout/algorithm/fit/sort_heap.hpp +++ b/sprout/algorithm/fit/sort_heap.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type sort_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type sort_heap_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset @@ -29,7 +29,7 @@ namespace sprout { // sort_heap // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type sort_heap( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type sort_heap( Container const& cont, Compare comp ) @@ -39,7 +39,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type sort_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type sort_heap_impl( Container const& cont, typename sprout::container_traits::difference_type offset ) @@ -55,7 +55,7 @@ namespace sprout { // sort_heap // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type sort_heap( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type sort_heap( Container const& cont ) { diff --git a/sprout/algorithm/fit/stable_partition.hpp b/sprout/algorithm/fit/stable_partition.hpp index 38b3625a..24ef2881 100644 --- a/sprout/algorithm/fit/stable_partition.hpp +++ b/sprout/algorithm/fit/stable_partition.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type stable_partition_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type stable_partition_impl( Container const& cont, Predicate pred, typename sprout::container_traits::difference_type offset @@ -30,7 +30,7 @@ namespace sprout { // stable_partition // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type stable_partition( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type stable_partition( Container const& cont, Predicate pred ) diff --git a/sprout/algorithm/fit/stable_partition_copy.hpp b/sprout/algorithm/fit/stable_partition_copy.hpp index 6bc8c36f..9f7ada57 100644 --- a/sprout/algorithm/fit/stable_partition_copy.hpp +++ b/sprout/algorithm/fit/stable_partition_copy.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type stable_partition_copy_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type stable_partition_copy_impl( InputIterator first, InputIterator last, Result const& result, @@ -32,7 +32,7 @@ namespace sprout { // stable_partition_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type stable_partition_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type stable_partition_copy( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fit/stable_sort.hpp b/sprout/algorithm/fit/stable_sort.hpp index 1d997304..5d4475fc 100644 --- a/sprout/algorithm/fit/stable_sort.hpp +++ b/sprout/algorithm/fit/stable_sort.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type stable_sort_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type stable_sort_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset @@ -29,7 +29,7 @@ namespace sprout { // stable_sort // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type stable_sort( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type stable_sort( Container const& cont, Compare comp ) @@ -39,7 +39,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type stable_sort_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type stable_sort_impl( Container const& cont, typename sprout::container_traits::difference_type offset ) @@ -55,7 +55,7 @@ namespace sprout { // stable_sort // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type stable_sort( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type stable_sort( Container const& cont ) { diff --git a/sprout/algorithm/fit/swap_element.hpp b/sprout/algorithm/fit/swap_element.hpp index fddb4f00..f4244721 100644 --- a/sprout/algorithm/fit/swap_element.hpp +++ b/sprout/algorithm/fit/swap_element.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type swap_element_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type swap_element_impl( Container const& cont, typename sprout::container_traits::const_iterator pos1, typename sprout::container_traits::const_iterator pos2, @@ -31,7 +31,7 @@ namespace sprout { // swap_element // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type swap_element( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type swap_element( Container const& cont, typename sprout::container_traits::const_iterator pos1, typename sprout::container_traits::const_iterator pos2 diff --git a/sprout/algorithm/fit/swap_element_copy.hpp b/sprout/algorithm/fit/swap_element_copy.hpp index 1c990f6f..7dba7565 100644 --- a/sprout/algorithm/fit/swap_element_copy.hpp +++ b/sprout/algorithm/fit/swap_element_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type swap_element_copy_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type swap_element_copy_impl( InputIterator first, InputIterator last, Result const& result, @@ -34,7 +34,7 @@ namespace sprout { // swap_element_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type swap_element_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type swap_element_copy( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fit/transform.hpp b/sprout/algorithm/fit/transform.hpp index 2a91ad05..2b506108 100644 --- a/sprout/algorithm/fit/transform.hpp +++ b/sprout/algorithm/fit/transform.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type transform_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type transform_impl( Iterator first, Iterator last, Result const& result, @@ -33,7 +33,7 @@ namespace sprout { // transform // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type transform( Iterator first, Iterator last, Result const& result, @@ -45,7 +45,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type transform_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type transform_impl( Iterator1 first1, Iterator1 last1, Iterator2 first2, @@ -65,7 +65,7 @@ namespace sprout { // transform // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type transform( Iterator1 first1, Iterator1 last1, Iterator2 first2, diff --git a/sprout/algorithm/fit/unique.hpp b/sprout/algorithm/fit/unique.hpp index ca976789..f0b61130 100644 --- a/sprout/algorithm/fit/unique.hpp +++ b/sprout/algorithm/fit/unique.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type unique_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type unique_impl( Container const& cont, typename sprout::container_traits::difference_type offset ) @@ -29,7 +29,7 @@ namespace sprout { // unique // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type unique( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type unique( Container const& cont ) { @@ -38,7 +38,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type unique_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type unique_impl( Container const& cont, BinaryPredicate pred, typename sprout::container_traits::difference_type offset @@ -55,7 +55,7 @@ namespace sprout { // unique // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type unique( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type unique( Container const& cont, BinaryPredicate pred ) diff --git a/sprout/algorithm/fit/unique_copy.hpp b/sprout/algorithm/fit/unique_copy.hpp index b02f90ad..3a7fb1aa 100644 --- a/sprout/algorithm/fit/unique_copy.hpp +++ b/sprout/algorithm/fit/unique_copy.hpp @@ -15,7 +15,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type unique_copy_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type unique_copy_impl( InputIterator first, InputIterator last, Result const& result, @@ -33,7 +33,7 @@ namespace sprout { // unique_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type unique_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type unique_copy( InputIterator first, InputIterator last, Result const& result @@ -44,7 +44,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type unique_copy_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type unique_copy_impl( InputIterator first, InputIterator last, Result const& result, @@ -63,7 +63,7 @@ namespace sprout { // unique_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type unique_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type unique_copy( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fixed/bogo_sort.hpp b/sprout/algorithm/fixed/bogo_sort.hpp index 87a03121..c946e15d 100644 --- a/sprout/algorithm/fixed/bogo_sort.hpp +++ b/sprout/algorithm/fixed/bogo_sort.hpp @@ -16,7 +16,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type bogo_sort_impl_1( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type bogo_sort_impl_1( Shuffled const& shuffled, Compare comp ) @@ -37,7 +37,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type bogo_sort_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type bogo_sort_impl( Container const& cont, UniformRandomNumberGenerator&& g, Compare comp @@ -63,7 +63,7 @@ namespace sprout { // bogo_sort // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type bogo_sort( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type bogo_sort( Container const& cont, UniformRandomNumberGenerator&& g, Compare comp @@ -79,7 +79,7 @@ namespace sprout { // bogo_sort // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type bogo_sort( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type bogo_sort( Container const& cont, UniformRandomNumberGenerator&& g ) diff --git a/sprout/algorithm/fixed/bogo_sort_result.hpp b/sprout/algorithm/fixed/bogo_sort_result.hpp index 9378e8da..d57a9f58 100644 --- a/sprout/algorithm/fixed/bogo_sort_result.hpp +++ b/sprout/algorithm/fixed/bogo_sort_result.hpp @@ -17,7 +17,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fixed::result_of::algorithm::type, typename std::decay::type > bogo_sort_result_impl_1( @@ -41,7 +41,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fixed::result_of::algorithm::type, typename std::decay::type > bogo_sort_result_impl( @@ -77,7 +77,7 @@ namespace sprout { // bogo_sort_result // template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fixed::result_of::algorithm::type, typename std::decay::type > bogo_sort_result( @@ -96,7 +96,7 @@ namespace sprout { // bogo_sort_result // template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fixed::result_of::algorithm::type, typename std::decay::type > bogo_sort_result( diff --git a/sprout/algorithm/fixed/copy.hpp b/sprout/algorithm/fixed/copy.hpp index 13d947c3..dd23c64a 100644 --- a/sprout/algorithm/fixed/copy.hpp +++ b/sprout/algorithm/fixed/copy.hpp @@ -16,7 +16,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy_impl_ra( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_impl_ra( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -36,7 +36,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -54,7 +54,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type copy_impl( @@ -68,7 +68,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type copy_impl( @@ -85,7 +85,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy( InputIterator first, InputIterator last, Result const& result, @@ -99,7 +99,7 @@ namespace sprout { // copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy( InputIterator first, InputIterator last, Result const& result diff --git a/sprout/algorithm/fixed/copy_backward.hpp b/sprout/algorithm/fixed/copy_backward.hpp index 8e316f58..3b4635ae 100644 --- a/sprout/algorithm/fixed/copy_backward.hpp +++ b/sprout/algorithm/fixed/copy_backward.hpp @@ -17,7 +17,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy_backward_impl_ra( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_backward_impl_ra( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -37,7 +37,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy_backward( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_backward( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -55,7 +55,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type copy_backward_impl( @@ -69,7 +69,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type copy_backward_impl( @@ -86,7 +86,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy_backward( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_backward( BidirectionalIterator first, BidirectionalIterator last, Result const& result, @@ -105,7 +105,7 @@ namespace sprout { // copy_backward // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy_backward( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_backward( BidirectionalIterator first, BidirectionalIterator last, Result const& result diff --git a/sprout/algorithm/fixed/copy_if.hpp b/sprout/algorithm/fixed/copy_if.hpp index f3c48efa..1c6a655f 100644 --- a/sprout/algorithm/fixed/copy_if.hpp +++ b/sprout/algorithm/fixed/copy_if.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type copy_if_impl( @@ -28,7 +28,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type copy_if_impl( @@ -52,7 +52,7 @@ namespace sprout { // copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy_if( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_if( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fixed/copy_n.hpp b/sprout/algorithm/fixed/copy_n.hpp index dda91c5b..398eb728 100644 --- a/sprout/algorithm/fixed/copy_n.hpp +++ b/sprout/algorithm/fixed/copy_n.hpp @@ -15,7 +15,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_n( RandomAccessIterator first, Size n, Result const& result, @@ -25,7 +25,7 @@ namespace sprout { return sprout::fixed::copy(first, sprout::next(first, n), result); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type copy_n_impl( @@ -39,7 +39,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type copy_n_impl( @@ -56,7 +56,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_n( InputIterator first, Size n, Result const& result, @@ -70,7 +70,7 @@ namespace sprout { // copy_n // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_n( InputIterator first, Size n, Result const& result diff --git a/sprout/algorithm/fixed/fill.hpp b/sprout/algorithm/fixed/fill.hpp index 2caaad61..001462d6 100644 --- a/sprout/algorithm/fixed/fill.hpp +++ b/sprout/algorithm/fixed/fill.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type fill_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type fill_impl( Container const& cont, T const& value, sprout::index_tuple, @@ -34,7 +34,7 @@ namespace sprout { // fill // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type fill( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type fill( Container const& cont, T const& value ) diff --git a/sprout/algorithm/fixed/fill_n.hpp b/sprout/algorithm/fixed/fill_n.hpp index e085cf87..ba20b8be 100644 --- a/sprout/algorithm/fixed/fill_n.hpp +++ b/sprout/algorithm/fixed/fill_n.hpp @@ -14,7 +14,7 @@ namespace sprout { // fill_n // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type fill_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type fill_n( Container const& cont, Size n, T const& value diff --git a/sprout/algorithm/fixed/generate.hpp b/sprout/algorithm/fixed/generate.hpp index 84b319c3..d523f796 100644 --- a/sprout/algorithm/fixed/generate.hpp +++ b/sprout/algorithm/fixed/generate.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< InitSize == 0, typename sprout::container_traits::value_type >::type call_gen( @@ -25,7 +25,7 @@ namespace sprout { return gen(); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< InitSize != 0 && InitSize == sizeof...(Args) + 1, typename sprout::container_traits::value_type >::type call_gen( @@ -37,7 +37,7 @@ namespace sprout { return gen(head, args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< InitSize != 0 && InitSize != sizeof...(Args) + 1, typename sprout::container_traits::value_type >::type call_gen( @@ -49,7 +49,7 @@ namespace sprout { return call_gen(gen, args...); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type generate_impl_drop( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type generate_impl_drop( Container const& cont, Generator gen, typename sprout::container_traits::size_type size @@ -58,7 +58,7 @@ namespace sprout { return sprout::detail::container_complate(cont); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size >= sizeof...(Inits) + 1), typename sprout::fixed::result_of::algorithm::type >::type generate_impl_drop( @@ -75,7 +75,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size < sizeof...(Inits) + 1), typename sprout::fixed::result_of::algorithm::type >::type generate_impl_drop( @@ -89,7 +89,7 @@ namespace sprout { return sprout::fixed::detail::generate_impl_drop(cont, gen, size, inits...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type generate_impl_1( @@ -102,7 +102,7 @@ namespace sprout { return sprout::remake(cont, sprout::size(cont), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type generate_impl_1( @@ -118,7 +118,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size > sizeof...(Inits)), typename sprout::fixed::result_of::algorithm::type >::type generate_impl( @@ -134,7 +134,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size <= sizeof...(Inits)), typename sprout::fixed::result_of::algorithm::type >::type generate_impl( @@ -151,7 +151,7 @@ namespace sprout { // generate // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type generate( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type generate( Container const& cont, Generator gen, Inits const&... inits diff --git a/sprout/algorithm/fixed/generate_n.hpp b/sprout/algorithm/fixed/generate_n.hpp index 6bd2381a..d7264d6d 100644 --- a/sprout/algorithm/fixed/generate_n.hpp +++ b/sprout/algorithm/fixed/generate_n.hpp @@ -12,7 +12,7 @@ namespace sprout { // generate_n // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type generate_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type generate_n( Container const& cont, Size n, Generator gen, diff --git a/sprout/algorithm/fixed/inplace_merge.hpp b/sprout/algorithm/fixed/inplace_merge.hpp index 6ae35bf5..05d0012d 100644 --- a/sprout/algorithm/fixed/inplace_merge.hpp +++ b/sprout/algorithm/fixed/inplace_merge.hpp @@ -13,7 +13,7 @@ namespace sprout { // inplace_merge // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type inplace_merge( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type inplace_merge( Container const& cont, typename sprout::container_traits::const_iterator middle, Compare comp @@ -32,7 +32,7 @@ namespace sprout { // inplace_merge // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type inplace_merge( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type inplace_merge( Container const& cont, typename sprout::container_traits::const_iterator middle ) diff --git a/sprout/algorithm/fixed/make_heap.hpp b/sprout/algorithm/fixed/make_heap.hpp index f0e13473..471fc378 100644 --- a/sprout/algorithm/fixed/make_heap.hpp +++ b/sprout/algorithm/fixed/make_heap.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type make_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type make_heap_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset, @@ -23,7 +23,7 @@ namespace sprout { typename sprout::container_traits::difference_type r = 2 ); template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type make_heap_impl_1( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type make_heap_impl_1( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset, @@ -67,7 +67,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type make_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type make_heap_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset, @@ -111,7 +111,7 @@ namespace sprout { // make_heap // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type make_heap( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type make_heap( Container const& cont, Compare comp ) @@ -127,7 +127,7 @@ namespace sprout { // make_heap // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type make_heap( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type make_heap( Container const& cont ) { diff --git a/sprout/algorithm/fixed/make_partial_heap.hpp b/sprout/algorithm/fixed/make_partial_heap.hpp index 2a174b5a..5003d1ec 100644 --- a/sprout/algorithm/fixed/make_partial_heap.hpp +++ b/sprout/algorithm/fixed/make_partial_heap.hpp @@ -16,7 +16,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type make_partial_heap_impl_1( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type make_partial_heap_impl_1( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset, @@ -49,7 +49,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type make_partial_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type make_partial_heap_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset, @@ -71,7 +71,7 @@ namespace sprout { // make_partial_heap // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type make_partial_heap( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type make_partial_heap( Container const& cont, typename sprout::container_traits::const_iterator middle, Compare comp @@ -89,7 +89,7 @@ namespace sprout { // make_partial_heap // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type make_partial_heap( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type make_partial_heap( Container const& cont, typename sprout::container_traits::const_iterator middle ) diff --git a/sprout/algorithm/fixed/merge.hpp b/sprout/algorithm/fixed/merge.hpp index 3fc4a7a9..0f629593 100644 --- a/sprout/algorithm/fixed/merge.hpp +++ b/sprout/algorithm/fixed/merge.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type merge_impl( @@ -31,7 +31,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type merge_impl( @@ -63,7 +63,7 @@ namespace sprout { // merge // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type merge( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type merge( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -86,7 +86,7 @@ namespace sprout { // merge // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type merge( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type merge( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/fixed/nth_element.hpp b/sprout/algorithm/fixed/nth_element.hpp index 5dfebf08..6f106ebf 100644 --- a/sprout/algorithm/fixed/nth_element.hpp +++ b/sprout/algorithm/fixed/nth_element.hpp @@ -15,7 +15,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type nth_element_impl_1( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type nth_element_impl_1( Container const& cont, typename sprout::container_traits::difference_type offset, typename sprout::container_traits::difference_type nth_size @@ -28,7 +28,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type nth_element_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type nth_element_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset, @@ -47,7 +47,7 @@ namespace sprout { // nth_element // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type nth_element( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type nth_element( Container const& cont, typename sprout::container_traits::const_iterator nth, Compare comp @@ -65,7 +65,7 @@ namespace sprout { // nth_element // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type nth_element( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type nth_element( Container const& cont, typename sprout::container_traits::const_iterator nth ) diff --git a/sprout/algorithm/fixed/partial_sort.hpp b/sprout/algorithm/fixed/partial_sort.hpp index 757e0b1b..1f559100 100644 --- a/sprout/algorithm/fixed/partial_sort.hpp +++ b/sprout/algorithm/fixed/partial_sort.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type partial_sort_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type partial_sort_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset, @@ -34,7 +34,7 @@ namespace sprout { // partial_sort // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type partial_sort( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type partial_sort( Container const& cont, typename sprout::container_traits::const_iterator middle, Compare comp @@ -52,7 +52,7 @@ namespace sprout { // partial_sort // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type partial_sort( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type partial_sort( Container const& cont, typename sprout::container_traits::const_iterator middle ) diff --git a/sprout/algorithm/fixed/partition.hpp b/sprout/algorithm/fixed/partition.hpp index 7411c59e..28d63344 100644 --- a/sprout/algorithm/fixed/partition.hpp +++ b/sprout/algorithm/fixed/partition.hpp @@ -13,7 +13,7 @@ namespace sprout { // partition // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type partition( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type partition( Container const& cont, Predicate pred ) diff --git a/sprout/algorithm/fixed/partition_copy.hpp b/sprout/algorithm/fixed/partition_copy.hpp index 8971414f..5c8ed6a6 100644 --- a/sprout/algorithm/fixed/partition_copy.hpp +++ b/sprout/algorithm/fixed/partition_copy.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type partition_copy_impl( @@ -28,7 +28,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type partition_copy_impl( @@ -52,7 +52,7 @@ namespace sprout { // partition_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type partition_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type partition_copy( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fixed/pop_heap.hpp b/sprout/algorithm/fixed/pop_heap.hpp index a85b6129..a7d9504d 100644 --- a/sprout/algorithm/fixed/pop_heap.hpp +++ b/sprout/algorithm/fixed/pop_heap.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type pop_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type pop_heap_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset, @@ -63,7 +63,7 @@ namespace sprout { // pop_heap // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type pop_heap( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type pop_heap( Container const& cont, Compare comp ) @@ -79,7 +79,7 @@ namespace sprout { // pop_heap // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type pop_heap( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type pop_heap( Container const& cont ) { diff --git a/sprout/algorithm/fixed/push_heap.hpp b/sprout/algorithm/fixed/push_heap.hpp index 0667c59c..e97c668b 100644 --- a/sprout/algorithm/fixed/push_heap.hpp +++ b/sprout/algorithm/fixed/push_heap.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type push_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type push_heap_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset, @@ -39,7 +39,7 @@ namespace sprout { // push_heap // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type push_heap( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type push_heap( Container const& cont, Compare comp ) @@ -55,7 +55,7 @@ namespace sprout { // push_heap // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type push_heap( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type push_heap( Container const& cont ) { diff --git a/sprout/algorithm/fixed/remove.hpp b/sprout/algorithm/fixed/remove.hpp index 14d2e041..881f9f7d 100644 --- a/sprout/algorithm/fixed/remove.hpp +++ b/sprout/algorithm/fixed/remove.hpp @@ -13,7 +13,7 @@ namespace sprout { // remove // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type remove( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type remove( Container const& cont, T const& value ) diff --git a/sprout/algorithm/fixed/remove_copy.hpp b/sprout/algorithm/fixed/remove_copy.hpp index 7a90d5e5..896787b5 100644 --- a/sprout/algorithm/fixed/remove_copy.hpp +++ b/sprout/algorithm/fixed/remove_copy.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type remove_copy_impl( @@ -28,7 +28,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type remove_copy_impl( @@ -52,7 +52,7 @@ namespace sprout { // remove_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type remove_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type remove_copy( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fixed/remove_copy_if.hpp b/sprout/algorithm/fixed/remove_copy_if.hpp index 794751c6..40f33a7c 100644 --- a/sprout/algorithm/fixed/remove_copy_if.hpp +++ b/sprout/algorithm/fixed/remove_copy_if.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type remove_copy_if_impl( @@ -28,7 +28,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type remove_copy_if_impl( @@ -52,7 +52,7 @@ namespace sprout { // remove_copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type remove_copy_if( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type remove_copy_if( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fixed/remove_if.hpp b/sprout/algorithm/fixed/remove_if.hpp index 3749bab7..b5f95f03 100644 --- a/sprout/algorithm/fixed/remove_if.hpp +++ b/sprout/algorithm/fixed/remove_if.hpp @@ -13,7 +13,7 @@ namespace sprout { // remove_if // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type remove_if( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type remove_if( Container const& cont, Predicate pred ) diff --git a/sprout/algorithm/fixed/replace.hpp b/sprout/algorithm/fixed/replace.hpp index 54b0117b..69ad5aff 100644 --- a/sprout/algorithm/fixed/replace.hpp +++ b/sprout/algorithm/fixed/replace.hpp @@ -13,7 +13,7 @@ namespace sprout { // replace // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace( Container const& cont, T const& old_value, T const& new_value diff --git a/sprout/algorithm/fixed/replace_copy.hpp b/sprout/algorithm/fixed/replace_copy.hpp index ed3858e0..0a16285a 100644 --- a/sprout/algorithm/fixed/replace_copy.hpp +++ b/sprout/algorithm/fixed/replace_copy.hpp @@ -17,7 +17,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace_copy_impl_ra( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy_impl_ra( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -39,7 +39,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -61,7 +61,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type replace_copy_impl( @@ -77,7 +77,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type replace_copy_impl( @@ -96,7 +96,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy( InputIterator first, InputIterator last, Result const& result, @@ -112,7 +112,7 @@ namespace sprout { // replace_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fixed/replace_copy_if.hpp b/sprout/algorithm/fixed/replace_copy_if.hpp index f2d36800..92342935 100644 --- a/sprout/algorithm/fixed/replace_copy_if.hpp +++ b/sprout/algorithm/fixed/replace_copy_if.hpp @@ -16,7 +16,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace_copy_if_impl_ra( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy_if_impl_ra( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -38,7 +38,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace_copy_if( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy_if( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -60,7 +60,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type replace_copy_if_impl( @@ -76,7 +76,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type replace_copy_if_impl( @@ -95,7 +95,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace_copy_if( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy_if( InputIterator first, InputIterator last, Result const& result, @@ -111,7 +111,7 @@ namespace sprout { // replace_copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace_copy_if( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy_if( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fixed/replace_if.hpp b/sprout/algorithm/fixed/replace_if.hpp index d8d1f3e6..a0055830 100644 --- a/sprout/algorithm/fixed/replace_if.hpp +++ b/sprout/algorithm/fixed/replace_if.hpp @@ -13,7 +13,7 @@ namespace sprout { // replace_if // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace_if( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_if( Container const& cont, Predicate pred, T const& new_value diff --git a/sprout/algorithm/fixed/reverse.hpp b/sprout/algorithm/fixed/reverse.hpp index aa3af75e..e4455f5a 100644 --- a/sprout/algorithm/fixed/reverse.hpp +++ b/sprout/algorithm/fixed/reverse.hpp @@ -13,7 +13,7 @@ namespace sprout { // reverse // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type reverse( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type reverse( Container const& cont ) { diff --git a/sprout/algorithm/fixed/reverse_copy.hpp b/sprout/algorithm/fixed/reverse_copy.hpp index e94fd163..acef58a7 100644 --- a/sprout/algorithm/fixed/reverse_copy.hpp +++ b/sprout/algorithm/fixed/reverse_copy.hpp @@ -16,7 +16,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type reverse_copy_impl_ra( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type reverse_copy_impl_ra( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -36,7 +36,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type reverse_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type reverse_copy( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -54,7 +54,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type reverse_copy_impl( @@ -68,7 +68,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type reverse_copy_impl( @@ -85,7 +85,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type reverse_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type reverse_copy( BidirectionalIterator first, BidirectionalIterator last, Result const& result, @@ -99,7 +99,7 @@ namespace sprout { // reverse_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type reverse_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type reverse_copy( BidirectionalIterator first, BidirectionalIterator last, Result const& result diff --git a/sprout/algorithm/fixed/rotate.hpp b/sprout/algorithm/fixed/rotate.hpp index 602c84d9..8f1da692 100644 --- a/sprout/algorithm/fixed/rotate.hpp +++ b/sprout/algorithm/fixed/rotate.hpp @@ -13,7 +13,7 @@ namespace sprout { // rotate // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type rotate( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type rotate( Container const& cont, typename sprout::container_traits::const_iterator middle ) diff --git a/sprout/algorithm/fixed/rotate_copy.hpp b/sprout/algorithm/fixed/rotate_copy.hpp index 1fa007b4..ec02297d 100644 --- a/sprout/algorithm/fixed/rotate_copy.hpp +++ b/sprout/algorithm/fixed/rotate_copy.hpp @@ -16,7 +16,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type rotate_copy_impl_ra( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type rotate_copy_impl_ra( RandomAccessIterator first, RandomAccessIterator middle, RandomAccessIterator last, @@ -40,7 +40,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type rotate_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type rotate_copy( RandomAccessIterator first, RandomAccessIterator middle, RandomAccessIterator last, @@ -60,7 +60,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type rotate_copy_impl_1( @@ -74,7 +74,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type rotate_copy_impl_1( @@ -91,7 +91,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type rotate_copy_impl( @@ -107,7 +107,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type rotate_copy_impl( @@ -126,7 +126,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type rotate_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type rotate_copy( ForwardIterator first, ForwardIterator middle, ForwardIterator last, @@ -141,7 +141,7 @@ namespace sprout { // rotate_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type rotate_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type rotate_copy( ForwardIterator first, ForwardIterator middle, ForwardIterator last, diff --git a/sprout/algorithm/fixed/set_difference.hpp b/sprout/algorithm/fixed/set_difference.hpp index 30ffe5cf..c279b5f6 100644 --- a/sprout/algorithm/fixed/set_difference.hpp +++ b/sprout/algorithm/fixed/set_difference.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type set_difference_impl( @@ -31,7 +31,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type set_difference_impl( @@ -65,7 +65,7 @@ namespace sprout { // set_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_difference( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -88,7 +88,7 @@ namespace sprout { // set_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_difference( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/fixed/set_intersection.hpp b/sprout/algorithm/fixed/set_intersection.hpp index 90f29a77..69bc8bbc 100644 --- a/sprout/algorithm/fixed/set_intersection.hpp +++ b/sprout/algorithm/fixed/set_intersection.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type set_intersection_impl( @@ -31,7 +31,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type set_intersection_impl( @@ -65,7 +65,7 @@ namespace sprout { // set_intersection // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_intersection( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_intersection( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -88,7 +88,7 @@ namespace sprout { // set_intersection // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_intersection( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_intersection( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/fixed/set_symmetric_difference.hpp b/sprout/algorithm/fixed/set_symmetric_difference.hpp index cccc7b75..f6cf84fd 100644 --- a/sprout/algorithm/fixed/set_symmetric_difference.hpp +++ b/sprout/algorithm/fixed/set_symmetric_difference.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type set_symmetric_difference_impl( @@ -31,7 +31,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type set_symmetric_difference_impl( @@ -65,7 +65,7 @@ namespace sprout { // set_symmetric_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -88,7 +88,7 @@ namespace sprout { // set_symmetric_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/fixed/set_union.hpp b/sprout/algorithm/fixed/set_union.hpp index 48abd367..d45c83a1 100644 --- a/sprout/algorithm/fixed/set_union.hpp +++ b/sprout/algorithm/fixed/set_union.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type set_union_impl( @@ -31,7 +31,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type set_union_impl( @@ -65,7 +65,7 @@ namespace sprout { // set_union // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_union( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_union( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -88,7 +88,7 @@ namespace sprout { // set_union // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_union( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_union( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/fixed/shuffle.hpp b/sprout/algorithm/fixed/shuffle.hpp index 83814588..e3926f24 100644 --- a/sprout/algorithm/fixed/shuffle.hpp +++ b/sprout/algorithm/fixed/shuffle.hpp @@ -20,7 +20,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline sprout::array make_shuffle_indexes_1( + inline SPROUT_CONSTEXPR sprout::array make_shuffle_indexes_1( std::ptrdiff_t n, Random const& rnd, sprout::array const& arr, @@ -38,7 +38,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline sprout::array make_shuffle_indexes( + inline SPROUT_CONSTEXPR sprout::array make_shuffle_indexes( std::ptrdiff_t n, UniformRandomNumberGenerator&& g ) @@ -54,7 +54,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type shuffle_impl_1( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type shuffle_impl_1( Container const& cont, sprout::index_tuple, Shuffled const& shuffled, @@ -72,7 +72,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type shuffle_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type shuffle_impl( Container const& cont, sprout::index_tuple indexes, UniformRandomNumberGenerator&& g, @@ -96,7 +96,7 @@ namespace sprout { // shuffle // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type shuffle( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type shuffle( Container const& cont, UniformRandomNumberGenerator&& g ) diff --git a/sprout/algorithm/fixed/shuffle_result.hpp b/sprout/algorithm/fixed/shuffle_result.hpp index 269e5529..5bda6e6e 100644 --- a/sprout/algorithm/fixed/shuffle_result.hpp +++ b/sprout/algorithm/fixed/shuffle_result.hpp @@ -21,7 +21,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< sprout::array, typename std::decay::type > make_shuffle_result_indexes_1( @@ -49,7 +49,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< sprout::array, typename std::decay::type > make_shuffle_result_indexes( @@ -75,7 +75,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fixed::result_of::algorithm::type, typename std::decay::type > shuffle_result_impl_1( @@ -103,7 +103,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fixed::result_of::algorithm::type, typename std::decay::type > shuffle_result_impl( @@ -130,7 +130,7 @@ namespace sprout { // shuffle_result // template - SPROUT_CONSTEXPR inline sprout::tuples::tuple< + inline SPROUT_CONSTEXPR sprout::tuples::tuple< typename sprout::fixed::result_of::algorithm::type, typename std::decay::type > shuffle_result( diff --git a/sprout/algorithm/fixed/sort.hpp b/sprout/algorithm/fixed/sort.hpp index a97df033..8771eac8 100644 --- a/sprout/algorithm/fixed/sort.hpp +++ b/sprout/algorithm/fixed/sort.hpp @@ -15,7 +15,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort_lr( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort_lr( Container const& cont, typename sprout::container_traits::difference_type start, typename sprout::container_traits::difference_type end, @@ -25,7 +25,7 @@ namespace sprout { typename sprout::container_traits::value_type const& p ); template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort_start( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort_start( Container const& cont, typename sprout::container_traits::difference_type start, typename sprout::container_traits::difference_type end, @@ -33,7 +33,7 @@ namespace sprout { ); template - SPROUT_CONSTEXPR inline typename sprout::container_traits::value_type const& sort_select_pivot( + inline SPROUT_CONSTEXPR typename sprout::container_traits::value_type const& sort_select_pivot( Iterator origin, typename sprout::container_traits::difference_type start, typename sprout::container_traits::difference_type end @@ -42,7 +42,7 @@ namespace sprout { return *sprout::next(origin, (end + start) / 2); } template - SPROUT_CONSTEXPR inline typename sprout::container_traits::difference_type sort_find_l( + inline SPROUT_CONSTEXPR typename sprout::container_traits::difference_type sort_find_l( Iterator origin, Compare comp, typename sprout::container_traits::difference_type l, @@ -55,7 +55,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::container_traits::difference_type sort_find_r( + inline SPROUT_CONSTEXPR typename sprout::container_traits::difference_type sort_find_r( Iterator origin, Compare comp, typename sprout::container_traits::difference_type r, @@ -68,13 +68,13 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type swap_lr( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type swap_lr( Container const& cont, typename sprout::container_traits::difference_type l, typename sprout::container_traits::difference_type r ); template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort_part_l( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort_part_l( Container const& cont, typename sprout::container_traits::difference_type start, Compare comp, @@ -87,7 +87,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort_part_r( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort_part_r( Container const& cont, typename sprout::container_traits::difference_type end, Compare comp, @@ -100,7 +100,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort_part_lr( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort_part_lr( Container const& cont, typename sprout::container_traits::difference_type start, typename sprout::container_traits::difference_type end, @@ -117,7 +117,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort_next( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort_next( Container const& cont, typename sprout::container_traits::difference_type start, typename sprout::container_traits::difference_type end, @@ -145,7 +145,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort_lr( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort_lr( Container const& cont, typename sprout::container_traits::difference_type start, typename sprout::container_traits::difference_type end, @@ -166,7 +166,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort_start( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort_start( Container const& cont, typename sprout::container_traits::difference_type start, typename sprout::container_traits::difference_type end, @@ -184,7 +184,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size <= 1), typename sprout::fixed::result_of::algorithm::type >::type sort( @@ -195,7 +195,7 @@ namespace sprout { return sprout::deep_copy(cont); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size > 1), typename sprout::fixed::result_of::algorithm::type >::type sort( @@ -211,7 +211,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size <= 1), typename sprout::fixed::result_of::algorithm::type >::type sort( @@ -221,7 +221,7 @@ namespace sprout { return sprout::deep_copy(cont); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size > 1), typename sprout::fixed::result_of::algorithm::type >::type sort( @@ -240,7 +240,7 @@ namespace sprout { // sort // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort( Container const& cont, Compare comp ) @@ -251,7 +251,7 @@ namespace sprout { // sort // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort( Container const& cont ) { diff --git a/sprout/algorithm/fixed/sort_heap.hpp b/sprout/algorithm/fixed/sort_heap.hpp index e12e75c0..fbf6f7b4 100644 --- a/sprout/algorithm/fixed/sort_heap.hpp +++ b/sprout/algorithm/fixed/sort_heap.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort_heap_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort_heap_impl( Container const& cont, Compare comp, typename sprout::container_traits::difference_type offset, @@ -41,7 +41,7 @@ namespace sprout { // sort_heap // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort_heap( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort_heap( Container const& cont, Compare comp ) @@ -57,7 +57,7 @@ namespace sprout { // sort_heap // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type sort_heap( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type sort_heap( Container const& cont ) { diff --git a/sprout/algorithm/fixed/stable_partition.hpp b/sprout/algorithm/fixed/stable_partition.hpp index 62d4268a..31e6c4ea 100644 --- a/sprout/algorithm/fixed/stable_partition.hpp +++ b/sprout/algorithm/fixed/stable_partition.hpp @@ -13,7 +13,7 @@ namespace sprout { // stable_partition // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type stable_partition( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type stable_partition( Container const& cont, Predicate pred ) diff --git a/sprout/algorithm/fixed/stable_partition_copy.hpp b/sprout/algorithm/fixed/stable_partition_copy.hpp index 5d5caefb..8c2c5c5d 100644 --- a/sprout/algorithm/fixed/stable_partition_copy.hpp +++ b/sprout/algorithm/fixed/stable_partition_copy.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type stable_partition_copy_impl_1( @@ -28,7 +28,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type stable_partition_copy_impl_1( @@ -49,7 +49,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type stable_partition_copy_impl( @@ -65,7 +65,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type stable_partition_copy_impl( @@ -90,7 +90,7 @@ namespace sprout { // stable_partition_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type stable_partition_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type stable_partition_copy( BidirectionalIterator first, BidirectionalIterator last, Result const& result, diff --git a/sprout/algorithm/fixed/stable_sort.hpp b/sprout/algorithm/fixed/stable_sort.hpp index cb4e2221..a2f9a8c2 100644 --- a/sprout/algorithm/fixed/stable_sort.hpp +++ b/sprout/algorithm/fixed/stable_sort.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type stable_sort_impl_restart( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type stable_sort_impl_restart( Container const& cont, Compare comp, typename sprout::container_traits::size_type size, @@ -21,7 +21,7 @@ namespace sprout { Args const&... args ); template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type stable_sort_impl_synonym( @@ -38,7 +38,7 @@ namespace sprout { return sprout::remake(cont, sprout::size(cont), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type stable_sort_impl_synonym( @@ -60,7 +60,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type stable_sort_impl_restart_1( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type stable_sort_impl_restart_1( Container const& cont, Compare comp, typename sprout::container_traits::size_type size, @@ -85,7 +85,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type stable_sort_impl_restart( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type stable_sort_impl_restart( Container const& cont, Compare comp, typename sprout::container_traits::size_type size, @@ -110,7 +110,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type stable_sort_impl_1( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type stable_sort_impl_1( Container const& cont, Compare comp, typename sprout::container_traits::size_type size, @@ -131,7 +131,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type stable_sort_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type stable_sort_impl( Container const& cont, Compare comp, typename sprout::container_traits::size_type size @@ -149,7 +149,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size <= 1), typename sprout::fixed::result_of::algorithm::type >::type stable_sort( @@ -160,7 +160,7 @@ namespace sprout { return sprout::deep_copy(cont); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size > 1), typename sprout::fixed::result_of::algorithm::type >::type stable_sort( @@ -175,7 +175,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size <= 1), typename sprout::fixed::result_of::algorithm::type >::type stable_sort( @@ -185,7 +185,7 @@ namespace sprout { return sprout::deep_copy(cont); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size > 1), typename sprout::fixed::result_of::algorithm::type >::type stable_sort( @@ -203,7 +203,7 @@ namespace sprout { // stable_sort // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type stable_sort( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type stable_sort( Container const& cont, Compare comp ) @@ -214,7 +214,7 @@ namespace sprout { // stable_sort // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type stable_sort( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type stable_sort( Container const& cont ) { diff --git a/sprout/algorithm/fixed/swap_element.hpp b/sprout/algorithm/fixed/swap_element.hpp index fd9cbca8..6c3e5169 100644 --- a/sprout/algorithm/fixed/swap_element.hpp +++ b/sprout/algorithm/fixed/swap_element.hpp @@ -13,7 +13,7 @@ namespace sprout { // swap_element // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type swap_element( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type swap_element( Container const& cont, typename sprout::container_traits::const_iterator pos1, typename sprout::container_traits::const_iterator pos2 diff --git a/sprout/algorithm/fixed/swap_element_copy.hpp b/sprout/algorithm/fixed/swap_element_copy.hpp index aa2e828c..4d72dfa3 100644 --- a/sprout/algorithm/fixed/swap_element_copy.hpp +++ b/sprout/algorithm/fixed/swap_element_copy.hpp @@ -16,7 +16,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type swap_element_copy_impl_ra( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type swap_element_copy_impl_ra( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -42,7 +42,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type swap_element_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type swap_element_copy( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -64,7 +64,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type swap_element_copy_impl( @@ -80,7 +80,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type swap_element_copy_impl( @@ -99,7 +99,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type swap_element_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type swap_element_copy( InputIterator first, InputIterator last, Result const& result, @@ -115,7 +115,7 @@ namespace sprout { // swap_element_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type swap_element_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type swap_element_copy( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/fixed/transform.hpp b/sprout/algorithm/fixed/transform.hpp index 46d26bae..4e56b47b 100644 --- a/sprout/algorithm/fixed/transform.hpp +++ b/sprout/algorithm/fixed/transform.hpp @@ -16,7 +16,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform_impl_ra( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform_impl_ra( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -37,7 +37,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform( RandomAccessIterator first, RandomAccessIterator last, Result const& result, @@ -57,7 +57,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type transform_impl( @@ -72,7 +72,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type transform_impl( @@ -90,7 +90,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform( InputIterator first, InputIterator last, Result const& result, @@ -105,7 +105,7 @@ namespace sprout { // transform // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform( InputIterator first, InputIterator last, Result const& result, @@ -118,7 +118,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform_impl_ra( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform_impl_ra( RandomAccessIterator1 first1, RandomAccessIterator1 last1, RandomAccessIterator2 first2, @@ -140,7 +140,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform( RandomAccessIterator1 first1, RandomAccessIterator1 last1, RandomAccessIterator2 first2, @@ -162,7 +162,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type transform_impl( @@ -178,7 +178,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type transform_impl( @@ -197,7 +197,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -213,7 +213,7 @@ namespace sprout { // transform // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/fixed/unique.hpp b/sprout/algorithm/fixed/unique.hpp index 3eba5e12..dbd550da 100644 --- a/sprout/algorithm/fixed/unique.hpp +++ b/sprout/algorithm/fixed/unique.hpp @@ -12,7 +12,7 @@ namespace sprout { // unique // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type unique( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type unique( Container const& cont ) { @@ -23,7 +23,7 @@ namespace sprout { // unique // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type unique( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type unique( Container const& cont, BinaryPredicate pred ) diff --git a/sprout/algorithm/fixed/unique_copy.hpp b/sprout/algorithm/fixed/unique_copy.hpp index 63fac428..b08af92a 100644 --- a/sprout/algorithm/fixed/unique_copy.hpp +++ b/sprout/algorithm/fixed/unique_copy.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args) + 1, typename sprout::fixed::result_of::algorithm::type >::type unique_copy_impl( @@ -28,7 +28,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args..., head); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args) + 1, typename sprout::fixed::result_of::algorithm::type >::type unique_copy_impl( @@ -52,7 +52,7 @@ namespace sprout { // unique_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type unique_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type unique_copy( InputIterator first, InputIterator last, Result const& result @@ -66,7 +66,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args) + 1, typename sprout::fixed::result_of::algorithm::type >::type unique_copy_impl( @@ -82,7 +82,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args..., head); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args) + 1, typename sprout::fixed::result_of::algorithm::type >::type unique_copy_impl( @@ -107,7 +107,7 @@ namespace sprout { // unique_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type unique_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type unique_copy( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/algorithm/includes.hpp b/sprout/algorithm/includes.hpp index 5d08a86e..ca52b343 100644 --- a/sprout/algorithm/includes.hpp +++ b/sprout/algorithm/includes.hpp @@ -9,7 +9,7 @@ namespace sprout { // 25.4.5.1 includes template - SPROUT_CONSTEXPR bool includes(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2) { + inline SPROUT_CONSTEXPR bool includes(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2) { return first2 == last2 ? true : first1 == last1 ? false : !(*first1 < *first2) && !(*first2 < *first1) @@ -19,7 +19,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR bool includes(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, Compare comp) { + inline SPROUT_CONSTEXPR bool includes(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, Compare comp) { return first2 == last2 ? true : first1 == last1 ? false : !comp(*first1, *first2) && !comp(*first2, *first1) diff --git a/sprout/algorithm/is_heap.hpp b/sprout/algorithm/is_heap.hpp index 5424599e..82ca16b4 100644 --- a/sprout/algorithm/is_heap.hpp +++ b/sprout/algorithm/is_heap.hpp @@ -9,12 +9,12 @@ namespace sprout { // 25.4.6.5 is_heap template - SPROUT_CONSTEXPR bool is_heap(RandomAccessIterator first, RandomAccessIterator last) { + inline SPROUT_CONSTEXPR bool is_heap(RandomAccessIterator first, RandomAccessIterator last) { return sprout::is_heap_until(first, last) == last; } template - SPROUT_CONSTEXPR bool is_heap(RandomAccessIterator first, RandomAccessIterator last, Compare comp) { + inline SPROUT_CONSTEXPR bool is_heap(RandomAccessIterator first, RandomAccessIterator last, Compare comp) { return sprout::is_heap_until(first, last, comp) == last; } } // namespace sprout diff --git a/sprout/algorithm/is_heap_until.hpp b/sprout/algorithm/is_heap_until.hpp index 78bb9d27..a600dc12 100644 --- a/sprout/algorithm/is_heap_until.hpp +++ b/sprout/algorithm/is_heap_until.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR RandomAccessIterator is_heap_until_impl( + inline SPROUT_CONSTEXPR RandomAccessIterator is_heap_until_impl( RandomAccessIterator first, RandomAccessIterator last, Compare comp, @@ -27,12 +27,12 @@ namespace sprout { // 25.4.6.5 is_heap template - SPROUT_CONSTEXPR RandomAccessIterator is_heap_until(RandomAccessIterator first, RandomAccessIterator last) { + inline SPROUT_CONSTEXPR RandomAccessIterator is_heap_until(RandomAccessIterator first, RandomAccessIterator last) { return sprout::is_heap_until(first, last, NS_SSCRISK_CEL_OR_SPROUT::less()); } template - SPROUT_CONSTEXPR RandomAccessIterator is_heap_until(RandomAccessIterator first, RandomAccessIterator last, Compare comp) { + inline SPROUT_CONSTEXPR RandomAccessIterator is_heap_until(RandomAccessIterator first, RandomAccessIterator last, Compare comp) { return NS_SSCRISK_CEL_OR_SPROUT::distance(first, last) < 2 ? last : sprout::detail::is_heap_until_impl(first, last, comp, 1); } } // namespace sprout diff --git a/sprout/algorithm/is_partitioned.hpp b/sprout/algorithm/is_partitioned.hpp index 2dbed643..0ad7d83e 100644 --- a/sprout/algorithm/is_partitioned.hpp +++ b/sprout/algorithm/is_partitioned.hpp @@ -9,7 +9,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR bool is_partitioned_impl(InputIterator first, InputIterator last, Predicate pred, bool cond = true) { + inline SPROUT_CONSTEXPR bool is_partitioned_impl(InputIterator first, InputIterator last, Predicate pred, bool cond = true) { return first == last ? true : cond ? sprout::detail::is_partitioned_impl(sprout::next(first), last, pred, pred(*first)) : pred(*first) ? false @@ -20,7 +20,7 @@ namespace sprout { // 25.3.13 Partitions template - SPROUT_CONSTEXPR bool is_partitioned(InputIterator first, InputIterator last, Predicate pred) { + inline SPROUT_CONSTEXPR bool is_partitioned(InputIterator first, InputIterator last, Predicate pred) { return sprout::detail::is_partitioned_impl(first, last, pred); } } // namespace sprout diff --git a/sprout/algorithm/is_permutation.hpp b/sprout/algorithm/is_permutation.hpp index 357a4a60..f10e1d01 100644 --- a/sprout/algorithm/is_permutation.hpp +++ b/sprout/algorithm/is_permutation.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR bool is_permutation_impl( + inline SPROUT_CONSTEXPR bool is_permutation_impl( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2, @@ -30,7 +30,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR bool is_permutation_impl( + inline SPROUT_CONSTEXPR bool is_permutation_impl( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2, @@ -50,7 +50,7 @@ namespace sprout { // 25.2.12 Is permutation template - SPROUT_CONSTEXPR bool is_permutation( + inline SPROUT_CONSTEXPR bool is_permutation( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2 @@ -60,7 +60,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR bool is_permutation( + inline SPROUT_CONSTEXPR bool is_permutation( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2, diff --git a/sprout/algorithm/is_sorted.hpp b/sprout/algorithm/is_sorted.hpp index be9390a2..49658d95 100644 --- a/sprout/algorithm/is_sorted.hpp +++ b/sprout/algorithm/is_sorted.hpp @@ -9,12 +9,12 @@ namespace sprout { // 25.4.1.5 is_sorted template - SPROUT_CONSTEXPR bool is_sorted(ForwardIterator first, ForwardIterator last) { + inline SPROUT_CONSTEXPR bool is_sorted(ForwardIterator first, ForwardIterator last) { return sprout::is_sorted_until(first, last) == last; } template - SPROUT_CONSTEXPR bool is_sorted(ForwardIterator first, ForwardIterator last, Compare comp) { + inline SPROUT_CONSTEXPR bool is_sorted(ForwardIterator first, ForwardIterator last, Compare comp) { return sprout::is_sorted_until(first, last, comp) == last; } } // namespace sprout diff --git a/sprout/algorithm/is_sorted_until.hpp b/sprout/algorithm/is_sorted_until.hpp index 3eabc7ad..f14efd0a 100644 --- a/sprout/algorithm/is_sorted_until.hpp +++ b/sprout/algorithm/is_sorted_until.hpp @@ -9,7 +9,7 @@ namespace sprout { // 25.4.1.5 is_sorted template - SPROUT_CONSTEXPR ForwardIterator is_sorted_until(ForwardIterator first, ForwardIterator last) { + inline SPROUT_CONSTEXPR ForwardIterator is_sorted_until(ForwardIterator first, ForwardIterator last) { return first == last || sprout::next(first) == last ? last : *(sprout::next(first)) < *first ? sprout::next(first) : sprout::is_sorted_until(sprout::next(first), last) @@ -17,7 +17,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR ForwardIterator is_sorted_until(ForwardIterator first, ForwardIterator last, Compare comp) { + inline SPROUT_CONSTEXPR ForwardIterator is_sorted_until(ForwardIterator first, ForwardIterator last, Compare comp) { return first == last || sprout::next(first) == last ? last : comp(*(sprout::next(first)), *first) != false ? sprout::next(first) : sprout::is_sorted_until(sprout::next(first), last) diff --git a/sprout/algorithm/lexicographical_compare.hpp b/sprout/algorithm/lexicographical_compare.hpp index bb7c84b0..79a4f031 100644 --- a/sprout/algorithm/lexicographical_compare.hpp +++ b/sprout/algorithm/lexicographical_compare.hpp @@ -10,7 +10,7 @@ namespace sprout { // 25.4.8 Lexicographical comparison template - SPROUT_CONSTEXPR bool lexicographical_compare( + inline SPROUT_CONSTEXPR bool lexicographical_compare( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -26,7 +26,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR bool lexicographical_compare( + inline SPROUT_CONSTEXPR bool lexicographical_compare( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/lower_bound.hpp b/sprout/algorithm/lower_bound.hpp index 6b67a87d..bda9ab5a 100644 --- a/sprout/algorithm/lower_bound.hpp +++ b/sprout/algorithm/lower_bound.hpp @@ -10,7 +10,7 @@ namespace sprout { // 25.4.3.1 lower_bound template - SPROUT_CONSTEXPR ForwardIterator lower_bound(ForwardIterator first, ForwardIterator last, T const& value) { + inline SPROUT_CONSTEXPR ForwardIterator lower_bound(ForwardIterator first, ForwardIterator last, T const& value) { return first == last ? last : sprout::next(first) == last ? *first < value ? last : first : *sprout::next(first, NS_SSCRISK_CEL_OR_SPROUT::distance(first, last) / 2) < value @@ -20,7 +20,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR ForwardIterator lower_bound(ForwardIterator first, ForwardIterator last, T const& value, Compare comp) { + inline SPROUT_CONSTEXPR ForwardIterator lower_bound(ForwardIterator first, ForwardIterator last, T const& value, Compare comp) { return first == last ? last : sprout::next(first) == last ? comp(*first, value) ? last : first : comp(*sprout::next(first, NS_SSCRISK_CEL_OR_SPROUT::distance(first, last) / 2), value) diff --git a/sprout/algorithm/max.hpp b/sprout/algorithm/max.hpp index 3751ddad..5103a98b 100644 --- a/sprout/algorithm/max.hpp +++ b/sprout/algorithm/max.hpp @@ -9,12 +9,12 @@ namespace sprout { // 25.4.7 Minimum and maximum template - SPROUT_CONSTEXPR T const& max(T const& a, T const& b, Compare comp) { + inline SPROUT_CONSTEXPR T const& max(T const& a, T const& b, Compare comp) { return comp(a, b) ? b : a; } template - SPROUT_CONSTEXPR T const& max(T const& a, T const& b) { + inline SPROUT_CONSTEXPR T const& max(T const& a, T const& b) { return sprout::max(a, b, NS_SSCRISK_CEL_OR_SPROUT::less()); } } // namespace sprout diff --git a/sprout/algorithm/max_element.hpp b/sprout/algorithm/max_element.hpp index 38b65110..05e99d0e 100644 --- a/sprout/algorithm/max_element.hpp +++ b/sprout/algorithm/max_element.hpp @@ -11,7 +11,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR ForwardIterator max_element_impl( + inline SPROUT_CONSTEXPR ForwardIterator max_element_impl( ForwardIterator first, ForwardIterator last, Compare comp, @@ -26,12 +26,12 @@ namespace sprout { // 25.4.7 Minimum and maximum template - SPROUT_CONSTEXPR ForwardIterator max_element(ForwardIterator first, ForwardIterator last, Compare comp) { + inline SPROUT_CONSTEXPR ForwardIterator max_element(ForwardIterator first, ForwardIterator last, Compare comp) { return sprout::detail::max_element_impl(first, last, comp, first); } template - SPROUT_CONSTEXPR ForwardIterator max_element(ForwardIterator first, ForwardIterator last) { + inline SPROUT_CONSTEXPR ForwardIterator max_element(ForwardIterator first, ForwardIterator last) { return sprout::max_element(first, last, NS_SSCRISK_CEL_OR_SPROUT::less::value_type>()); } } // namespace sprout diff --git a/sprout/algorithm/min.hpp b/sprout/algorithm/min.hpp index 62acb63c..957d347f 100644 --- a/sprout/algorithm/min.hpp +++ b/sprout/algorithm/min.hpp @@ -9,12 +9,12 @@ namespace sprout { // 25.4.7 Minimum and maximum template - SPROUT_CONSTEXPR T const& min(T const& a, T const& b, Compare comp) { + inline SPROUT_CONSTEXPR T const& min(T const& a, T const& b, Compare comp) { return comp(b, a) ? b : a; } template - SPROUT_CONSTEXPR T const& min(T const& a, T const& b) { + inline SPROUT_CONSTEXPR T const& min(T const& a, T const& b) { return sprout::min(a, b, NS_SSCRISK_CEL_OR_SPROUT::less()); } } // namespace sprout diff --git a/sprout/algorithm/min_element.hpp b/sprout/algorithm/min_element.hpp index b9673998..2cb025f1 100644 --- a/sprout/algorithm/min_element.hpp +++ b/sprout/algorithm/min_element.hpp @@ -11,7 +11,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR ForwardIterator min_element_impl( + inline SPROUT_CONSTEXPR ForwardIterator min_element_impl( ForwardIterator first, ForwardIterator last, Compare comp, @@ -26,12 +26,12 @@ namespace sprout { // 25.4.7 Minimum and maximum template - SPROUT_CONSTEXPR ForwardIterator min_element(ForwardIterator first, ForwardIterator last, Compare comp) { + inline SPROUT_CONSTEXPR ForwardIterator min_element(ForwardIterator first, ForwardIterator last, Compare comp) { return sprout::detail::min_element_impl(first, last, comp, first); } template - SPROUT_CONSTEXPR ForwardIterator min_element(ForwardIterator first, ForwardIterator last) { + inline SPROUT_CONSTEXPR ForwardIterator min_element(ForwardIterator first, ForwardIterator last) { return sprout::min_element(first, last, NS_SSCRISK_CEL_OR_SPROUT::less::value_type>()); } } // namespace sprout diff --git a/sprout/algorithm/minmax.hpp b/sprout/algorithm/minmax.hpp index f304ab9e..a4167336 100644 --- a/sprout/algorithm/minmax.hpp +++ b/sprout/algorithm/minmax.hpp @@ -10,12 +10,12 @@ namespace sprout { // 25.4.7 Minimum and maximum template - SPROUT_CONSTEXPR sprout::pair minmax(T const& a, T const& b, Compare comp) { + inline SPROUT_CONSTEXPR sprout::pair minmax(T const& a, T const& b, Compare comp) { return comp(b, a) ? sprout::pair(b, a) : sprout::pair(a, b); } template - SPROUT_CONSTEXPR sprout::pair minmax(T const& a, T const& b) { + inline SPROUT_CONSTEXPR sprout::pair minmax(T const& a, T const& b) { return sprout::minmax(a, b, NS_SSCRISK_CEL_OR_SPROUT::less()); } } // namespace sprout diff --git a/sprout/algorithm/minmax_element.hpp b/sprout/algorithm/minmax_element.hpp index 9a745457..566e15ee 100644 --- a/sprout/algorithm/minmax_element.hpp +++ b/sprout/algorithm/minmax_element.hpp @@ -11,7 +11,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR sprout::pair minmax_element_impl( + inline SPROUT_CONSTEXPR sprout::pair minmax_element_impl( ForwardIterator first, ForwardIterator last, Compare comp, @@ -28,12 +28,12 @@ namespace sprout { // 25.4.7 Minimum and maximum template - SPROUT_CONSTEXPR pair minmax_element(ForwardIterator first, ForwardIterator last, Compare comp) { + inline SPROUT_CONSTEXPR pair minmax_element(ForwardIterator first, ForwardIterator last, Compare comp) { return sprout::detail::minmax_element_impl(first, last, comp, first, first); } template - SPROUT_CONSTEXPR pair minmax_element(ForwardIterator first, ForwardIterator last) { + inline SPROUT_CONSTEXPR pair minmax_element(ForwardIterator first, ForwardIterator last) { return sprout::minmax_element(first, last, NS_SSCRISK_CEL_OR_SPROUT::less::value_type>()); } } // namespace sprout diff --git a/sprout/algorithm/mismatch.hpp b/sprout/algorithm/mismatch.hpp index 52f157a5..01469f77 100644 --- a/sprout/algorithm/mismatch.hpp +++ b/sprout/algorithm/mismatch.hpp @@ -10,7 +10,7 @@ namespace sprout { // 25.2.10 Mismatch template - SPROUT_CONSTEXPR sprout::pair mismatch( + inline SPROUT_CONSTEXPR sprout::pair mismatch( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2 @@ -23,7 +23,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR sprout::pair mismatch( + inline SPROUT_CONSTEXPR sprout::pair mismatch( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/algorithm/none_of.hpp b/sprout/algorithm/none_of.hpp index 6966b1c6..16da0f19 100644 --- a/sprout/algorithm/none_of.hpp +++ b/sprout/algorithm/none_of.hpp @@ -9,7 +9,7 @@ namespace sprout { // 25.2.3 None of template - SPROUT_CONSTEXPR bool none_of(InputIterator first, InputIterator last, Predicate pred) { + inline SPROUT_CONSTEXPR bool none_of(InputIterator first, InputIterator last, Predicate pred) { return first == last ? true : pred(*first) == false && sprout::none_of(sprout::next(first), last, pred) ; diff --git a/sprout/algorithm/partition_point.hpp b/sprout/algorithm/partition_point.hpp index 966f166a..665449c6 100644 --- a/sprout/algorithm/partition_point.hpp +++ b/sprout/algorithm/partition_point.hpp @@ -10,7 +10,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR ForwardIterator partition_point_impl(ForwardIterator first, ForwardIterator last, Predicate pred, ForwardIterator mid) { + inline SPROUT_CONSTEXPR ForwardIterator partition_point_impl(ForwardIterator first, ForwardIterator last, Predicate pred, ForwardIterator mid) { return mid == last ? mid : pred(*mid) ? sprout::detail::partition_point_impl( sprout::next(mid), @@ -30,7 +30,7 @@ namespace sprout { // 25.3.13 Partitions template - SPROUT_CONSTEXPR ForwardIterator partition_point(ForwardIterator first, ForwardIterator last, Predicate pred) { + inline SPROUT_CONSTEXPR ForwardIterator partition_point(ForwardIterator first, ForwardIterator last, Predicate pred) { return sprout::detail::partition_point_impl(first, last, pred, sprout::next(first, NS_SSCRISK_CEL_OR_SPROUT::distance(first, last) / 2)); } } // namespace sprout diff --git a/sprout/algorithm/search.hpp b/sprout/algorithm/search.hpp index 2089b845..3df871e3 100644 --- a/sprout/algorithm/search.hpp +++ b/sprout/algorithm/search.hpp @@ -10,7 +10,7 @@ namespace sprout { // 25.2.13 Search template - SPROUT_CONSTEXPR ForwardIterator1 search( + inline SPROUT_CONSTEXPR ForwardIterator1 search( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2, @@ -27,7 +27,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR ForwardIterator1 search( + inline SPROUT_CONSTEXPR ForwardIterator1 search( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2, diff --git a/sprout/algorithm/search_n.hpp b/sprout/algorithm/search_n.hpp index 25b2964f..766ced4e 100644 --- a/sprout/algorithm/search_n.hpp +++ b/sprout/algorithm/search_n.hpp @@ -9,7 +9,7 @@ namespace sprout { // 25.2.13 Search template - SPROUT_CONSTEXPR ForwardIterator search_n( + inline SPROUT_CONSTEXPR ForwardIterator search_n( ForwardIterator first, ForwardIterator last, Size count, @@ -26,7 +26,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR ForwardIterator search_n( + inline SPROUT_CONSTEXPR ForwardIterator search_n( ForwardIterator first, ForwardIterator last, Size count, diff --git a/sprout/algorithm/string/join.hpp b/sprout/algorithm/string/join.hpp index fedd5914..0f48b59a 100644 --- a/sprout/algorithm/string/join.hpp +++ b/sprout/algorithm/string/join.hpp @@ -31,7 +31,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), Result >::type join_impl( @@ -40,7 +40,7 @@ namespace sprout { Args const&... args ); template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), Result >::type join_impl( @@ -49,7 +49,7 @@ namespace sprout { Args const&... args ); template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), Result >::type join_impl_1( @@ -63,7 +63,7 @@ namespace sprout { return sprout::make(args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), Result >::type join_impl_1( @@ -80,7 +80,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), Result >::type join_impl( @@ -92,7 +92,7 @@ namespace sprout { return sprout::make(args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), Result >::type join_impl( @@ -111,7 +111,7 @@ namespace sprout { // join // template - SPROUT_CONSTEXPR inline typename sprout::algorithm::result_of::join::type join( + inline SPROUT_CONSTEXPR typename sprout::algorithm::result_of::join::type join( ContainerContainer const& cont_cont ) { diff --git a/sprout/algorithm/string/join2.hpp b/sprout/algorithm/string/join2.hpp index 117e1bfd..ceb0ff36 100644 --- a/sprout/algorithm/string/join2.hpp +++ b/sprout/algorithm/string/join2.hpp @@ -39,7 +39,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size == sprout::container_traits::static_size), Result >::type join2_impl_1( @@ -52,7 +52,7 @@ namespace sprout { return current; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::container_traits::static_size < sprout::container_traits::static_size), Result >::type join2_impl_1( @@ -70,7 +70,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline Result join2_impl( + inline SPROUT_CONSTEXPR Result join2_impl( ContainerIterator first, ContainerIterator last, Separator const& separator @@ -91,7 +91,7 @@ namespace sprout { // join2 // template - SPROUT_CONSTEXPR inline typename sprout::algorithm::result_of::join2::type join2( + inline SPROUT_CONSTEXPR typename sprout::algorithm::result_of::join2::type join2( ContainerContainer const& cont_cont, Separator const& separator ) diff --git a/sprout/algorithm/upper_bound.hpp b/sprout/algorithm/upper_bound.hpp index 17cb485e..fb85229c 100644 --- a/sprout/algorithm/upper_bound.hpp +++ b/sprout/algorithm/upper_bound.hpp @@ -10,7 +10,7 @@ namespace sprout { // 25.4.3.2 upper_bound template - SPROUT_CONSTEXPR ForwardIterator upper_bound(ForwardIterator first, ForwardIterator last, T const& value) { + inline SPROUT_CONSTEXPR ForwardIterator upper_bound(ForwardIterator first, ForwardIterator last, T const& value) { return first == last ? last : sprout::next(first) == last ? !(value < *first) ? last : first : !(value < *sprout::next(first, NS_SSCRISK_CEL_OR_SPROUT::distance(first, last) / 2)) @@ -20,7 +20,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR ForwardIterator upper_bound(ForwardIterator first, ForwardIterator last, T const& value, Compare comp) { + inline SPROUT_CONSTEXPR ForwardIterator upper_bound(ForwardIterator first, ForwardIterator last, T const& value, Compare comp) { return first == last ? last : sprout::next(first) == last ? !comp(value, *first) ? last : first : !comp(value, *sprout::next(first, NS_SSCRISK_CEL_OR_SPROUT::distance(first, last) / 2)) diff --git a/sprout/array.hpp b/sprout/array.hpp index a1f37905..1ad4f67a 100644 --- a/sprout/array.hpp +++ b/sprout/array.hpp @@ -195,27 +195,27 @@ namespace sprout { // operator>= // template - SPROUT_CONSTEXPR inline bool operator==(sprout::array const& lhs, sprout::array const& rhs) { + inline SPROUT_CONSTEXPR bool operator==(sprout::array const& lhs, sprout::array const& rhs) { return NS_SSCRISK_CEL_OR_SPROUT::equal(lhs.begin(), lhs.end(), rhs.begin()); } template - SPROUT_CONSTEXPR inline bool operator!=(sprout::array const& lhs, sprout::array const& rhs) { + inline SPROUT_CONSTEXPR bool operator!=(sprout::array const& lhs, sprout::array const& rhs) { return !(lhs == rhs); } template - SPROUT_CONSTEXPR inline bool operator<(sprout::array const& lhs, sprout::array const& rhs) { + inline SPROUT_CONSTEXPR bool operator<(sprout::array const& lhs, sprout::array const& rhs) { return NS_SSCRISK_CEL_OR_SPROUT::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end()); } template - SPROUT_CONSTEXPR inline bool operator>(sprout::array const& lhs, sprout::array const& rhs) { + inline SPROUT_CONSTEXPR bool operator>(sprout::array const& lhs, sprout::array const& rhs) { return rhs < lhs; } template - SPROUT_CONSTEXPR inline bool operator<=(sprout::array const& lhs, sprout::array const& rhs) { + inline SPROUT_CONSTEXPR bool operator<=(sprout::array const& lhs, sprout::array const& rhs) { return !(rhs < lhs); } template - SPROUT_CONSTEXPR inline bool operator>=(sprout::array const& lhs, sprout::array const& rhs) { + inline SPROUT_CONSTEXPR bool operator>=(sprout::array const& lhs, sprout::array const& rhs) { return !(lhs < rhs); } @@ -231,7 +231,7 @@ namespace sprout { // make_array // template - SPROUT_CONSTEXPR inline sprout::array make_array(Types&&... args) { + inline SPROUT_CONSTEXPR sprout::array make_array(Types&&... args) { return sprout::array{{sprout::forward(args)...}}; } @@ -239,13 +239,13 @@ namespace sprout { // make_common_array // template - SPROUT_CONSTEXPR inline sprout::array::type...>::type, sizeof...(Types)> make_common_array(Types&&... args) { + inline SPROUT_CONSTEXPR sprout::array::type...>::type, sizeof...(Types)> make_common_array(Types&&... args) { return sprout::array::type...>::type, sizeof...(Types)>{{sprout::forward(args)...}}; } namespace detail { template - SPROUT_CONSTEXPR inline sprout::array to_array_impl( + inline SPROUT_CONSTEXPR sprout::array to_array_impl( T const (& arr)[N], sprout::index_tuple ) @@ -257,7 +257,7 @@ namespace sprout { // to_array // template - SPROUT_CONSTEXPR inline sprout::array to_array(T const (& arr)[N]) { + inline SPROUT_CONSTEXPR sprout::array to_array(T const (& arr)[N]) { return sprout::detail::to_array_impl(arr, typename sprout::index_range<0, N>::type()); } diff --git a/sprout/breed/detail/as_lvalue.hpp b/sprout/breed/detail/as_lvalue.hpp index 3a3e2357..1c1f5161 100644 --- a/sprout/breed/detail/as_lvalue.hpp +++ b/sprout/breed/detail/as_lvalue.hpp @@ -8,11 +8,11 @@ namespace sprout { namespace breed { namespace detail { template - SPROUT_CONSTEXPR T& as_lvalue(T& t) { + inline SPROUT_CONSTEXPR T& as_lvalue(T& t) { return t; } template - SPROUT_CONSTEXPR T const& as_lvalue(T const& t) { + inline SPROUT_CONSTEXPR T const& as_lvalue(T const& t) { return t; } } // namespace detail diff --git a/sprout/breed/eval.hpp b/sprout/breed/eval.hpp index baae2d67..197df1d0 100644 --- a/sprout/breed/eval.hpp +++ b/sprout/breed/eval.hpp @@ -77,8 +77,8 @@ namespace sprout { return typename Context::template eval()(e, ctx); } template - typename sprout::breed::result_of::eval::type - SPROUT_CONSTEXPR eval(Expr const& e, Context const& ctx) { + SPROUT_CONSTEXPRtypename sprout::breed::result_of::eval::type + eval(Expr const& e, Context const& ctx) { return typename Context::template eval()(e, ctx); } } // namespace breed diff --git a/sprout/checksum/sha1.hpp b/sprout/checksum/sha1.hpp index a15f8ae7..41c941c3 100644 --- a/sprout/checksum/sha1.hpp +++ b/sprout/checksum/sha1.hpp @@ -19,7 +19,7 @@ namespace sprout { static_assert(CHAR_BIT == 8, "CHAR_BIT == 8"); namespace detail { - SPROUT_CONSTEXPR inline std::uint32_t sha1_left_rotate(std::uint32_t x, std::size_t n) { + inline SPROUT_CONSTEXPR std::uint32_t sha1_left_rotate(std::uint32_t x, std::size_t n) { return (x << n) ^ (x >> (32 - n)); } } // namespace detail diff --git a/sprout/container/begin.hpp b/sprout/container/begin.hpp index d66d5704..917d88db 100644 --- a/sprout/container/begin.hpp +++ b/sprout/container/begin.hpp @@ -19,11 +19,11 @@ namespace sprout { } template - SPROUT_CONSTEXPR inline typename sprout::container_traits::const_iterator begin(Container const& cont) { + inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator begin(Container const& cont) { return cont.begin(); } template - SPROUT_CONSTEXPR inline typename sprout::container_traits::const_iterator begin(T const (& arr)[N]) { + inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator begin(T const (& arr)[N]) { return arr; } @@ -31,11 +31,11 @@ namespace sprout { // cbegin // template - SPROUT_CONSTEXPR inline typename sprout::container_traits::const_iterator cbegin(Container const& cont) { + inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator cbegin(Container const& cont) { return cont.begin(); } template - SPROUT_CONSTEXPR inline typename sprout::container_traits::const_iterator cbegin(T const (& arr)[N]) { + inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator cbegin(T const (& arr)[N]) { return arr; } } // namespace sprout diff --git a/sprout/container/deep_copy.hpp b/sprout/container/deep_copy.hpp index 3d9b5b41..84280824 100644 --- a/sprout/container/deep_copy.hpp +++ b/sprout/container/deep_copy.hpp @@ -11,7 +11,7 @@ namespace sprout { // deep_copy // template - SPROUT_CONSTEXPR inline typename sprout::container_construct_traits< + inline SPROUT_CONSTEXPR typename sprout::container_construct_traits< typename std::remove_reference::type >::copied_type deep_copy(Container&& cont) { typedef typename std::remove_reference::type container_type; diff --git a/sprout/container/empty.hpp b/sprout/container/empty.hpp index f890bf6d..83e21def 100644 --- a/sprout/container/empty.hpp +++ b/sprout/container/empty.hpp @@ -10,7 +10,7 @@ namespace sprout { // empty // template - SPROUT_CONSTEXPR inline bool empty(Container const& cont) { + inline SPROUT_CONSTEXPR bool empty(Container const& cont) { return sprout::begin(cont) == sprout::end(cont); } } // namespace sprout diff --git a/sprout/container/end.hpp b/sprout/container/end.hpp index c5eacf50..9288bbe3 100644 --- a/sprout/container/end.hpp +++ b/sprout/container/end.hpp @@ -19,11 +19,11 @@ namespace sprout { } template - SPROUT_CONSTEXPR inline typename sprout::container_traits::const_iterator end(Container const& cont) { + inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator end(Container const& cont) { return cont.end(); } template - SPROUT_CONSTEXPR inline typename sprout::container_traits::const_iterator end(T const (& arr)[N]) { + inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator end(T const (& arr)[N]) { return arr + N; } @@ -31,11 +31,11 @@ namespace sprout { // cend // template - SPROUT_CONSTEXPR inline typename sprout::container_traits::const_iterator cend(Container const& cont) { + inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator cend(Container const& cont) { return cont.end(); } template - SPROUT_CONSTEXPR inline typename sprout::container_traits::const_iterator cend(T const (& arr)[N]) { + inline SPROUT_CONSTEXPR typename sprout::container_traits::const_iterator cend(T const (& arr)[N]) { return arr + N; } } // namespace sprout diff --git a/sprout/container/fixed_size.hpp b/sprout/container/fixed_size.hpp index c60e3204..20c88682 100644 --- a/sprout/container/fixed_size.hpp +++ b/sprout/container/fixed_size.hpp @@ -9,7 +9,7 @@ namespace sprout { // fixed_size // template - SPROUT_CONSTEXPR inline typename sprout::container_traits::size_type fixed_size() { + inline SPROUT_CONSTEXPR typename sprout::container_traits::size_type fixed_size() { return sprout::container_traits::fixed_size(); } } // namespace sprout diff --git a/sprout/container/get_internal.hpp b/sprout/container/get_internal.hpp index 55aaf1e7..f168d010 100644 --- a/sprout/container/get_internal.hpp +++ b/sprout/container/get_internal.hpp @@ -12,7 +12,7 @@ namespace sprout { // get_internal // template - SPROUT_CONSTEXPR inline typename sprout::containers::internal::type get_internal(Container&& cont) { + inline SPROUT_CONSTEXPR typename sprout::containers::internal::type get_internal(Container&& cont) { typedef typename std::remove_reference::type container_type; return sprout::sub_container_traits::get_internal(sprout::forward(cont)); } diff --git a/sprout/container/indexes.hpp b/sprout/container/indexes.hpp new file mode 100644 index 00000000..e64890a0 --- /dev/null +++ b/sprout/container/indexes.hpp @@ -0,0 +1,30 @@ +#ifndef SPROUT_CONTAINER_INDEXES_HPP +#define SPROUT_CONTAINER_INDEXES_HPP + +#include +#include +#include + +namespace sprout { + namespace containers { + // + // container_indexes + // + template + struct container_indexes + : public sprout::detail::make_index_tuple_helper< + sprout::index_range<0, sprout::container_traits::static_size> + > + {}; + } // namespace containers + + // + // container_indexes + // + template + struct container_indexes + : public sprout::containers::container_indexes + {}; +} // namespace sprout + +#endif // #ifndef SPROUT_CONTAINER_INDEXES_HPP diff --git a/sprout/container/internal_deep_copy.hpp b/sprout/container/internal_deep_copy.hpp index ef92c5ef..5e3abf3d 100644 --- a/sprout/container/internal_deep_copy.hpp +++ b/sprout/container/internal_deep_copy.hpp @@ -15,7 +15,7 @@ namespace sprout { // internal_deep_copy // template - SPROUT_CONSTEXPR inline typename sprout::container_construct_traits< + inline SPROUT_CONSTEXPR typename sprout::container_construct_traits< typename std::remove_reference< typename sprout::containers::internal::type >::type diff --git a/sprout/container/make.hpp b/sprout/container/make.hpp index f7552add..2f2d678c 100644 --- a/sprout/container/make.hpp +++ b/sprout/container/make.hpp @@ -10,7 +10,7 @@ namespace sprout { // make // template - SPROUT_CONSTEXPR inline typename sprout::container_construct_traits::copied_type make(Args&&... args) { + inline SPROUT_CONSTEXPR typename sprout::container_construct_traits::copied_type make(Args&&... args) { return sprout::container_construct_traits::make(sprout::forward(args)...); } } // namespace sprout diff --git a/sprout/container/metafunctions.hpp b/sprout/container/metafunctions.hpp index e8708f1a..d9a440c6 100644 --- a/sprout/container/metafunctions.hpp +++ b/sprout/container/metafunctions.hpp @@ -15,5 +15,6 @@ #include #include #include +#include #endif // #ifndef SPROUT_CONTAINER_METAFUNCTIONS_HPP diff --git a/sprout/container/remake.hpp b/sprout/container/remake.hpp index 5ad1b5d5..e00350ef 100644 --- a/sprout/container/remake.hpp +++ b/sprout/container/remake.hpp @@ -12,7 +12,7 @@ namespace sprout { // remake // template - SPROUT_CONSTEXPR inline typename sprout::container_construct_traits::copied_type remake( + inline SPROUT_CONSTEXPR typename sprout::container_construct_traits::copied_type remake( Cont&& cont, typename sprout::container_traits::difference_type size, Args&&... args diff --git a/sprout/container/size.hpp b/sprout/container/size.hpp index e2547b3a..4dc569eb 100644 --- a/sprout/container/size.hpp +++ b/sprout/container/size.hpp @@ -12,7 +12,7 @@ namespace sprout { // size // template - SPROUT_CONSTEXPR inline typename sprout::container_traits::difference_type size(Container const& cont) { + inline SPROUT_CONSTEXPR typename sprout::container_traits::difference_type size(Container const& cont) { return NS_SSCRISK_CEL_OR_SPROUT::distance(sprout::begin(cont), sprout::end(cont)); } } // namespace sprout diff --git a/sprout/darkroom/cameras/simple_camera.hpp b/sprout/darkroom/cameras/simple_camera.hpp index bb3e057d..8394fb30 100644 --- a/sprout/darkroom/cameras/simple_camera.hpp +++ b/sprout/darkroom/cameras/simple_camera.hpp @@ -136,7 +136,7 @@ namespace sprout { // make_simple_camera // template - SPROUT_CONSTEXPR inline sprout::darkroom::cameras::basic_simple_camera + inline SPROUT_CONSTEXPR sprout::darkroom::cameras::basic_simple_camera make_simple_camera( Unit const& far_plane, typename sprout::darkroom::cameras::basic_simple_camera::angle_of_view_reference::values reference_value diff --git a/sprout/darkroom/colors/rgb.hpp b/sprout/darkroom/colors/rgb.hpp index 531675e5..f6e00f2d 100644 --- a/sprout/darkroom/colors/rgb.hpp +++ b/sprout/darkroom/colors/rgb.hpp @@ -62,7 +62,7 @@ namespace sprout { // mul // template - SPROUT_CONSTEXPR inline Color mul(Color const& lhs, Fac const& rhs) { + inline SPROUT_CONSTEXPR Color mul(Color const& lhs, Fac const& rhs) { return sprout::tuples::remake( lhs, sprout::darkroom::colors::r(lhs) * rhs, @@ -74,7 +74,7 @@ namespace sprout { // add // template - SPROUT_CONSTEXPR inline Color1 add(Color1 const& lhs, Color2 const& rhs) { + inline SPROUT_CONSTEXPR Color1 add(Color1 const& lhs, Color2 const& rhs) { return sprout::tuples::remake( lhs, sprout::darkroom::colors::r(lhs) + sprout::darkroom::colors::r(rhs), @@ -86,7 +86,7 @@ namespace sprout { // filter // template - SPROUT_CONSTEXPR inline Color1 filter(Color1 const& lhs, Color2 const& rhs) { + inline SPROUT_CONSTEXPR Color1 filter(Color1 const& lhs, Color2 const& rhs) { return sprout::tuples::remake( lhs, sprout::darkroom::colors::r(lhs) * sprout::darkroom::colors::r(rhs), @@ -99,7 +99,7 @@ namespace sprout { // rgb_f_to_rgb // template - SPROUT_CONSTEXPR inline RGB rgb_f_to_rgb(RGB_F const& col) { + inline SPROUT_CONSTEXPR RGB rgb_f_to_rgb(RGB_F const& col) { typedef typename sprout::darkroom::access::unit::type unit_type; return sprout::tuples::make( sprout::darkroom::colors::r(col) < 0 ? std::numeric_limits::min() diff --git a/sprout/darkroom/coords/vector.hpp b/sprout/darkroom/coords/vector.hpp index 2b30be99..218e03e7 100644 --- a/sprout/darkroom/coords/vector.hpp +++ b/sprout/darkroom/coords/vector.hpp @@ -50,7 +50,7 @@ namespace sprout { // length_sq // template - SPROUT_CONSTEXPR inline typename sprout::darkroom::access::unit::type + inline SPROUT_CONSTEXPR typename sprout::darkroom::access::unit::type length_sq(Vector const& vec) { return sprout::darkroom::coords::x(vec) * sprout::darkroom::coords::x(vec) + sprout::darkroom::coords::y(vec) * sprout::darkroom::coords::y(vec) @@ -61,7 +61,7 @@ namespace sprout { // length // template - SPROUT_CONSTEXPR inline typename sprout::darkroom::access::unit::type + inline SPROUT_CONSTEXPR typename sprout::darkroom::access::unit::type length(Vector const& vec) { using std::sqrt; return sqrt(sprout::darkroom::coords::length_sq(vec)); @@ -70,7 +70,7 @@ namespace sprout { // add // template - SPROUT_CONSTEXPR inline Vector1 add(Vector1 const& lhs, Vector2 const& rhs) { + inline SPROUT_CONSTEXPR Vector1 add(Vector1 const& lhs, Vector2 const& rhs) { return sprout::tuples::remake( lhs, sprout::darkroom::coords::x(lhs) + sprout::darkroom::coords::x(rhs), @@ -82,7 +82,7 @@ namespace sprout { // sub // template - SPROUT_CONSTEXPR inline Vector1 sub(Vector1 const& lhs, Vector2 const& rhs) { + inline SPROUT_CONSTEXPR Vector1 sub(Vector1 const& lhs, Vector2 const& rhs) { return sprout::tuples::remake( lhs, sprout::darkroom::coords::x(lhs) - sprout::darkroom::coords::x(rhs), @@ -94,7 +94,7 @@ namespace sprout { // scale // template - SPROUT_CONSTEXPR inline Vector scale(Vector const& lhs, Fac const& rhs) { + inline SPROUT_CONSTEXPR Vector scale(Vector const& lhs, Fac const& rhs) { return sprout::tuples::remake( lhs, sprout::darkroom::coords::x(lhs) * rhs, @@ -106,7 +106,7 @@ namespace sprout { // dot // template - SPROUT_CONSTEXPR inline typename sprout::darkroom::access::unit::type + inline SPROUT_CONSTEXPR typename sprout::darkroom::access::unit::type dot(Vector const& lhs, Vector const& rhs) { return sprout::darkroom::coords::x(lhs) * sprout::darkroom::coords::x(rhs) + sprout::darkroom::coords::y(lhs) * sprout::darkroom::coords::y(rhs) @@ -117,7 +117,7 @@ namespace sprout { // cross // template - SPROUT_CONSTEXPR inline Vector1 cross(Vector1 const& lhs, Vector2 const& rhs) { + inline SPROUT_CONSTEXPR Vector1 cross(Vector1 const& lhs, Vector2 const& rhs) { return sprout::tuples::remake( lhs, sprout::darkroom::coords::y(lhs) * sprout::darkroom::coords::z(rhs) @@ -135,7 +135,7 @@ namespace sprout { // namespace detail { template - SPROUT_CONSTEXPR inline Vector normalize_impl( + inline SPROUT_CONSTEXPR Vector normalize_impl( Vector const& vec, typename sprout::darkroom::access::unit::type const& len ) @@ -149,7 +149,7 @@ namespace sprout { } } // namespace detail template - SPROUT_CONSTEXPR inline Vector normalize(Vector const& vec) { + inline SPROUT_CONSTEXPR Vector normalize(Vector const& vec) { return sprout::darkroom::coords::detail::normalize_impl( vec, sprout::darkroom::coords::length(vec) @@ -159,7 +159,7 @@ namespace sprout { // resize // template - SPROUT_CONSTEXPR inline Vector resize(Vector const& lhs, Fac const& rhs) { + inline SPROUT_CONSTEXPR Vector resize(Vector const& lhs, Fac const& rhs) { return sprout::darkroom::coords::detail::normalize_impl( lhs, sprout::darkroom::coords::length(lhs) / rhs @@ -169,7 +169,7 @@ namespace sprout { // reflect // template - SPROUT_CONSTEXPR inline Incident reflect(Incident const& incid, Normal const& nor) { + inline SPROUT_CONSTEXPR Incident reflect(Incident const& incid, Normal const& nor) { return sprout::darkroom::coords::sub( incid, sprout::darkroom::coords::scale(nor, sprout::darkroom::coords::dot(incid, nor) * 2) diff --git a/sprout/darkroom/lights/point_light.hpp b/sprout/darkroom/lights/point_light.hpp index 0205e5e1..655aaa5a 100644 --- a/sprout/darkroom/lights/point_light.hpp +++ b/sprout/darkroom/lights/point_light.hpp @@ -158,7 +158,7 @@ namespace sprout { // make_point_light // template - SPROUT_CONSTEXPR inline sprout::darkroom::lights::basic_point_light + inline SPROUT_CONSTEXPR sprout::darkroom::lights::basic_point_light make_point_light(Position const& pos, Color const& col) { return sprout::darkroom::lights::basic_point_light(pos, col); } diff --git a/sprout/darkroom/objects/aa_plane.hpp b/sprout/darkroom/objects/aa_plane.hpp index 79d4e88f..75094eed 100644 --- a/sprout/darkroom/objects/aa_plane.hpp +++ b/sprout/darkroom/objects/aa_plane.hpp @@ -204,7 +204,7 @@ namespace sprout { // make_aa_plane // template - SPROUT_CONSTEXPR inline sprout::darkroom::objects::basic_aa_plane + inline SPROUT_CONSTEXPR sprout::darkroom::objects::basic_aa_plane make_aa_plane( sprout::darkroom::objects::aa_plane_direction::values dir_val, Unit const& val, diff --git a/sprout/darkroom/objects/intersect.hpp b/sprout/darkroom/objects/intersect.hpp index 452a2b0b..781d3144 100644 --- a/sprout/darkroom/objects/intersect.hpp +++ b/sprout/darkroom/objects/intersect.hpp @@ -13,7 +13,7 @@ namespace sprout { // intersect // template - SPROUT_CONSTEXPR inline typename Object::template intersection::type + inline SPROUT_CONSTEXPR typename Object::template intersection::type intersect(Object const& obj, Ray const& ray) { return obj.intersect(ray); } @@ -62,7 +62,7 @@ namespace sprout { }; } // namespace detail template - SPROUT_CONSTEXPR inline typename sprout::darkroom::access::unit::type + inline SPROUT_CONSTEXPR typename sprout::darkroom::access::unit::type ::template intersection::type intersect_list(Objects const& objs, Ray const& ray) { return sprout::darkroom::objects::detail::intersect_list_impl< diff --git a/sprout/darkroom/objects/sphere.hpp b/sprout/darkroom/objects/sphere.hpp index 4a26b4ce..84a2c8fa 100644 --- a/sprout/darkroom/objects/sphere.hpp +++ b/sprout/darkroom/objects/sphere.hpp @@ -263,7 +263,7 @@ namespace sprout { // make_sphere // template - SPROUT_CONSTEXPR inline sprout::darkroom::objects::basic_sphere + inline SPROUT_CONSTEXPR sprout::darkroom::objects::basic_sphere make_sphere(Position const& pos, Radius const& rad, Material const& mat) { return sprout::darkroom::objects::basic_sphere(pos, rad, mat); } diff --git a/sprout/darkroom/pixels/generate.hpp b/sprout/darkroom/pixels/generate.hpp index 8abd97f8..05519a17 100644 --- a/sprout/darkroom/pixels/generate.hpp +++ b/sprout/darkroom/pixels/generate.hpp @@ -25,7 +25,7 @@ namespace sprout { typename Lights, sprout::index_t... XIndexes > - SPROUT_CONSTEXPR inline typename sprout::container_traits::value_type + inline SPROUT_CONSTEXPR typename sprout::container_traits::value_type generate_impl_line( RayTracer const& raytracer, Renderer const& renderer, @@ -73,7 +73,7 @@ namespace sprout { typename Lights, sprout::index_t... YIndexes > - SPROUT_CONSTEXPR inline Pixels + inline SPROUT_CONSTEXPR Pixels generate_impl( RayTracer const& raytracer, Renderer const& renderer, @@ -124,7 +124,7 @@ namespace sprout { typename Objects, typename Lights > - SPROUT_CONSTEXPR inline Pixels generate( + inline SPROUT_CONSTEXPR Pixels generate( RayTracer const& raytracer, Renderer const& renderer, Camera const& camera, diff --git a/sprout/darkroom/rays/ray.hpp b/sprout/darkroom/rays/ray.hpp index 32ae94bb..e466a882 100644 --- a/sprout/darkroom/rays/ray.hpp +++ b/sprout/darkroom/rays/ray.hpp @@ -49,7 +49,7 @@ namespace sprout { // point_of_intersection // template - SPROUT_CONSTEXPR inline typename sprout::darkroom::access::unit::type + inline SPROUT_CONSTEXPR typename sprout::darkroom::access::unit::type point_of_intersection(Ray const& ray, Distance const& dist) { return sprout::darkroom::coords::add( sprout::darkroom::rays::position(ray), diff --git a/sprout/detail/container_complate.hpp b/sprout/detail/container_complate.hpp index 10e0c781..6a065ecd 100644 --- a/sprout/detail/container_complate.hpp +++ b/sprout/detail/container_complate.hpp @@ -11,7 +11,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate_2( @@ -22,7 +22,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate_2( @@ -33,7 +33,7 @@ namespace sprout { return container_complate_2(result, args..., *sprout::next(sprout::internal_begin(result), sizeof...(Args))); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate_1( @@ -45,7 +45,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate_1( @@ -60,7 +60,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate( @@ -71,7 +71,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate( diff --git a/sprout/detail/container_complate_backward.hpp b/sprout/detail/container_complate_backward.hpp index c4d4d3ad..629045d1 100644 --- a/sprout/detail/container_complate_backward.hpp +++ b/sprout/detail/container_complate_backward.hpp @@ -11,7 +11,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate_backward_2( @@ -22,7 +22,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate_backward_2( @@ -33,7 +33,7 @@ namespace sprout { return container_complate_backward_2(result, *sprout::prev(sprout::internal_end(result), sizeof...(Args) + 1), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate_backward_1( @@ -45,7 +45,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate_backward_1( @@ -60,7 +60,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate_backward( @@ -71,7 +71,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type container_complate_backward( diff --git a/sprout/detail/overlap_count.hpp b/sprout/detail/overlap_count.hpp index c4c21669..581f06f0 100644 --- a/sprout/detail/overlap_count.hpp +++ b/sprout/detail/overlap_count.hpp @@ -8,7 +8,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::iterator_traits::difference_type overlap_count_impl( + inline SPROUT_CONSTEXPR typename std::iterator_traits::difference_type overlap_count_impl( Iterator first, Iterator last, typename std::iterator_traits::value_type const& value, @@ -26,7 +26,7 @@ namespace sprout { // overlap_count // template - SPROUT_CONSTEXPR inline typename std::iterator_traits::difference_type overlap_count( + inline SPROUT_CONSTEXPR typename std::iterator_traits::difference_type overlap_count( Iterator first, Iterator last ) @@ -38,7 +38,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR inline typename std::iterator_traits::difference_type overlap_count_impl( + inline SPROUT_CONSTEXPR typename std::iterator_traits::difference_type overlap_count_impl( Iterator first, Iterator last, Predicate pred, @@ -56,7 +56,7 @@ namespace sprout { // overlap_count // template - SPROUT_CONSTEXPR inline typename std::iterator_traits::difference_type overlap_count( + inline SPROUT_CONSTEXPR typename std::iterator_traits::difference_type overlap_count( Iterator first, Iterator last, Predicate pred diff --git a/sprout/detail/overlap_count_2.hpp b/sprout/detail/overlap_count_2.hpp index 347c9434..3d855ca6 100644 --- a/sprout/detail/overlap_count_2.hpp +++ b/sprout/detail/overlap_count_2.hpp @@ -11,7 +11,7 @@ namespace sprout { // overlap_count_2 // template - SPROUT_CONSTEXPR inline typename std::iterator_traits::difference_type overlap_count_2( + inline SPROUT_CONSTEXPR typename std::iterator_traits::difference_type overlap_count_2( Iterator1 first1, Iterator1 last1, Iterator2 first2, @@ -32,7 +32,7 @@ namespace sprout { // overlap_count_2 // template - SPROUT_CONSTEXPR inline typename std::iterator_traits::difference_type overlap_count_2( + inline SPROUT_CONSTEXPR typename std::iterator_traits::difference_type overlap_count_2( Iterator1 first1, Iterator1 last1, Iterator2 first2, diff --git a/sprout/detail/param_at.hpp b/sprout/detail/param_at.hpp index 533884b8..4e3551dc 100644 --- a/sprout/detail/param_at.hpp +++ b/sprout/detail/param_at.hpp @@ -8,7 +8,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sizeof...(Values) == 0, R >::type param_at( @@ -20,7 +20,7 @@ namespace sprout { return v; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sizeof...(Values) != 0, R >::type param_at( diff --git a/sprout/functional/dft/detail/dft_element_gen.hpp b/sprout/functional/dft/detail/dft_element_gen.hpp index 498ad5a3..65c4e6f0 100644 --- a/sprout/functional/dft/detail/dft_element_gen.hpp +++ b/sprout/functional/dft/detail/dft_element_gen.hpp @@ -10,7 +10,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::iterator_traits::value_type dft_element_gen( + inline SPROUT_CONSTEXPR typename std::iterator_traits::value_type dft_element_gen( InputIterator first, InputIterator last, typename std::iterator_traits::value_type::value_type arg, diff --git a/sprout/functional/dft/dft_element.hpp b/sprout/functional/dft/dft_element.hpp index 1f6d15fd..3e8528f4 100644 --- a/sprout/functional/dft/dft_element.hpp +++ b/sprout/functional/dft/dft_element.hpp @@ -10,7 +10,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::iterator_traits::value_type dft_element_impl( + inline SPROUT_CONSTEXPR typename std::iterator_traits::value_type dft_element_impl( InputIterator first, InputIterator last, typename std::iterator_traits::difference_type i, @@ -30,7 +30,7 @@ namespace sprout { // dft_element // template - SPROUT_CONSTEXPR inline typename std::iterator_traits::value_type dft_element( + inline SPROUT_CONSTEXPR typename std::iterator_traits::value_type dft_element( InputIterator first, InputIterator last, typename std::iterator_traits::difference_type i diff --git a/sprout/functional/dft/fit/dft.hpp b/sprout/functional/dft/fit/dft.hpp index 8f73cd3a..294d280b 100644 --- a/sprout/functional/dft/fit/dft.hpp +++ b/sprout/functional/dft/fit/dft.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type dft_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type dft_impl( InputIterator first, InputIterator last, Result const& result, @@ -32,7 +32,7 @@ namespace sprout { // dft // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type dft( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type dft( InputIterator first, InputIterator last, Result const& result diff --git a/sprout/functional/dft/fit/idft.hpp b/sprout/functional/dft/fit/idft.hpp index 6d543683..9a63c573 100644 --- a/sprout/functional/dft/fit/idft.hpp +++ b/sprout/functional/dft/fit/idft.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type idft_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type idft_impl( InputIterator first, InputIterator last, Result const& result, @@ -32,7 +32,7 @@ namespace sprout { // idft // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type idft( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type idft( InputIterator first, InputIterator last, Result const& result diff --git a/sprout/functional/dft/fixed/dft.hpp b/sprout/functional/dft/fixed/dft.hpp index 3733a822..4c5fc491 100644 --- a/sprout/functional/dft/fixed/dft.hpp +++ b/sprout/functional/dft/fixed/dft.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type dft_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type dft_impl( InputIterator first, InputIterator last, Result const& result, @@ -34,7 +34,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type dft( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type dft( InputIterator first, InputIterator last, Result const& result @@ -55,7 +55,7 @@ namespace sprout { // dft // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type dft( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type dft( InputIterator first, InputIterator last, Result const& result diff --git a/sprout/functional/dft/fixed/idft.hpp b/sprout/functional/dft/fixed/idft.hpp index e058d750..10d6a9cc 100644 --- a/sprout/functional/dft/fixed/idft.hpp +++ b/sprout/functional/dft/fixed/idft.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type idft_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type idft_impl( InputIterator first, InputIterator last, Result const& result, @@ -34,7 +34,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type idft( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type idft( InputIterator first, InputIterator last, Result const& result @@ -55,7 +55,7 @@ namespace sprout { // idft // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type idft( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type idft( InputIterator first, InputIterator last, Result const& result diff --git a/sprout/functional/dft/idft_element.hpp b/sprout/functional/dft/idft_element.hpp index 7522176a..6994123a 100644 --- a/sprout/functional/dft/idft_element.hpp +++ b/sprout/functional/dft/idft_element.hpp @@ -10,7 +10,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::iterator_traits::value_type idft_element_impl( + inline SPROUT_CONSTEXPR typename std::iterator_traits::value_type idft_element_impl( InputIterator first, InputIterator last, typename std::iterator_traits::difference_type i, @@ -32,7 +32,7 @@ namespace sprout { // idft_element // template - SPROUT_CONSTEXPR inline typename std::iterator_traits::value_type idft_element( + inline SPROUT_CONSTEXPR typename std::iterator_traits::value_type idft_element( InputIterator first, InputIterator last, typename std::iterator_traits::difference_type i diff --git a/sprout/functional/fft/fit/bitrev_table.hpp b/sprout/functional/fft/fit/bitrev_table.hpp index b180f430..31f13117 100644 --- a/sprout/functional/fft/fit/bitrev_table.hpp +++ b/sprout/functional/fft/fit/bitrev_table.hpp @@ -13,7 +13,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type bitrev_table_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type bitrev_table_impl( Container const& cont, typename sprout::container_traits::difference_type offset ) @@ -29,7 +29,7 @@ namespace sprout { // bitrev_table // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type bitrev_table( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type bitrev_table( Container const& cont ) { diff --git a/sprout/functional/fft/fixed/bitrev_table.hpp b/sprout/functional/fft/fixed/bitrev_table.hpp index 1489a522..7efce275 100644 --- a/sprout/functional/fft/fixed/bitrev_table.hpp +++ b/sprout/functional/fft/fixed/bitrev_table.hpp @@ -16,7 +16,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type bitrev_table_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type bitrev_table_impl( Container const& cont, sprout::index_tuple, std::size_t bit_length, @@ -41,7 +41,7 @@ namespace sprout { // bitrev_table // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type bitrev_table( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type bitrev_table( Container const& cont ) { diff --git a/sprout/functional/hash/hash.hpp b/sprout/functional/hash/hash.hpp index b62983c2..6a127d9f 100644 --- a/sprout/functional/hash/hash.hpp +++ b/sprout/functional/hash/hash.hpp @@ -11,19 +11,19 @@ namespace sprout { // // hash_value // - SPROUT_CONSTEXPR inline std::size_t hash_value(bool v); - SPROUT_CONSTEXPR inline std::size_t hash_value(char v); - SPROUT_CONSTEXPR inline std::size_t hash_value(wchar_t v); - SPROUT_CONSTEXPR inline std::size_t hash_value(unsigned char v); - SPROUT_CONSTEXPR inline std::size_t hash_value(signed char v); - SPROUT_CONSTEXPR inline std::size_t hash_value(short v); - SPROUT_CONSTEXPR inline std::size_t hash_value(unsigned short v); - SPROUT_CONSTEXPR inline std::size_t hash_value(int v); - SPROUT_CONSTEXPR inline std::size_t hash_value(unsigned int v); - SPROUT_CONSTEXPR inline std::size_t hash_value(long v); - SPROUT_CONSTEXPR inline std::size_t hash_value(unsigned long v); - SPROUT_CONSTEXPR inline std::size_t hash_value(long long v); - SPROUT_CONSTEXPR inline std::size_t hash_value(unsigned long long v); + inline SPROUT_CONSTEXPR std::size_t hash_value(bool v); + inline SPROUT_CONSTEXPR std::size_t hash_value(char v); + inline SPROUT_CONSTEXPR std::size_t hash_value(wchar_t v); + inline SPROUT_CONSTEXPR std::size_t hash_value(unsigned char v); + inline SPROUT_CONSTEXPR std::size_t hash_value(signed char v); + inline SPROUT_CONSTEXPR std::size_t hash_value(short v); + inline SPROUT_CONSTEXPR std::size_t hash_value(unsigned short v); + inline SPROUT_CONSTEXPR std::size_t hash_value(int v); + inline SPROUT_CONSTEXPR std::size_t hash_value(unsigned int v); + inline SPROUT_CONSTEXPR std::size_t hash_value(long v); + inline SPROUT_CONSTEXPR std::size_t hash_value(unsigned long v); + inline SPROUT_CONSTEXPR std::size_t hash_value(long long v); + inline SPROUT_CONSTEXPR std::size_t hash_value(unsigned long long v); //SPROUT_CONSTEXPR std::size_t inline hash_value(float v); //SPROUT_CONSTEXPR std::size_t inline hash_value(double v); //SPROUT_CONSTEXPR std::size_t inline hash_value(long double v); @@ -97,43 +97,43 @@ namespace sprout { // // hash_value // - SPROUT_CONSTEXPR inline std::size_t hash_value(bool v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(bool v) { return static_cast(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(char v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(char v) { return static_cast(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(wchar_t v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(wchar_t v) { return static_cast(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(unsigned char v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(unsigned char v) { return static_cast(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(signed char v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(signed char v) { return static_cast(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(short v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(short v) { return static_cast(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(unsigned short v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(unsigned short v) { return static_cast(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(int v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(int v) { return static_cast(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(unsigned int v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(unsigned int v) { return static_cast(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(long v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(long v) { return static_cast(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(unsigned long v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(unsigned long v) { return static_cast(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(long long v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(long long v) { return sprout::hash_detail::hash_value_signed(v); } - SPROUT_CONSTEXPR inline std::size_t hash_value(unsigned long long v) { + inline SPROUT_CONSTEXPR std::size_t hash_value(unsigned long long v) { return sprout::hash_detail::hash_value_unsigned(v); } template diff --git a/sprout/index_tuple.hpp b/sprout/index_tuple.hpp index 73846305..084095ef 100644 --- a/sprout/index_tuple.hpp +++ b/sprout/index_tuple.hpp @@ -15,7 +15,30 @@ namespace sprout { // index_tuple // template - struct index_tuple {}; + struct index_tuple { + public: + typedef index_tuple type; + }; + + // + // make_indexes + // + template + inline SPROUT_CONSTEXPR typename IndexTupleType::type make_indexes() { + return typename IndexTupleType::type(); + } + + namespace detail { + template + struct make_index_tuple_helper { + public: + typedef typename IndexTupleType::type type; + public: + static SPROUT_CONSTEXPR type make() { + return type(); + } + }; + } // namespace detail // // index_range @@ -87,10 +110,12 @@ namespace sprout { } // namespace detail template struct index_range - : public sprout::detail::index_range_impl< - First, - Step, - ((Last - First) + (Step - 1)) / Step + : public sprout::detail::make_index_tuple_helper< + sprout::detail::index_range_impl< + First, + Step, + ((Last - First) + (Step - 1)) / Step + > > {}; @@ -158,7 +183,19 @@ namespace sprout { } // namespace detail template struct index_n - : public sprout::detail::index_n_impl + : public sprout::detail::make_index_tuple_helper< + sprout::detail::index_n_impl + > + {}; + + // + // pack_indexes + // + template + struct pack_indexes + : public sprout::detail::make_index_tuple_helper< + sprout::index_range<0, sizeof...(Args)> + > {}; } // namespace sprout diff --git a/sprout/iterator/bytes_iterator.hpp b/sprout/iterator/bytes_iterator.hpp index 6167d8ef..c7997675 100644 --- a/sprout/iterator/bytes_iterator.hpp +++ b/sprout/iterator/bytes_iterator.hpp @@ -173,14 +173,14 @@ namespace sprout { // next // template - SPROUT_CONSTEXPR inline sprout::bytes_iterator next( + inline SPROUT_CONSTEXPR sprout::bytes_iterator next( sprout::bytes_iterator const& it ) { return it.next(); } template - SPROUT_CONSTEXPR inline sprout::bytes_iterator next( + inline SPROUT_CONSTEXPR sprout::bytes_iterator next( sprout::bytes_iterator const& it, typename sprout::bytes_iterator::difference_type n ) @@ -192,14 +192,14 @@ namespace sprout { // prev // template - SPROUT_CONSTEXPR inline sprout::bytes_iterator prev( + inline SPROUT_CONSTEXPR sprout::bytes_iterator prev( sprout::bytes_iterator const& it ) { return it.prev(); } template - SPROUT_CONSTEXPR inline sprout::bytes_iterator prev( + inline SPROUT_CONSTEXPR sprout::bytes_iterator prev( sprout::bytes_iterator const& it, typename sprout::bytes_iterator::difference_type n ) @@ -211,11 +211,11 @@ namespace sprout { // make_bytes_iterator // template - SPROUT_CONSTEXPR inline sprout::bytes_iterator make_bytes_iterator(Iterator it) { + inline SPROUT_CONSTEXPR sprout::bytes_iterator make_bytes_iterator(Iterator it) { return sprout::bytes_iterator(it); } template - SPROUT_CONSTEXPR inline sprout::bytes_iterator make_bytes_iterator(Iterator it, Traits) { + inline SPROUT_CONSTEXPR sprout::bytes_iterator make_bytes_iterator(Iterator it, Traits) { return sprout::bytes_iterator(it); } } // namespace sprout diff --git a/sprout/math/constants.hpp b/sprout/math/constants.hpp index 87f2a385..a743395c 100644 --- a/sprout/math/constants.hpp +++ b/sprout/math/constants.hpp @@ -9,14 +9,14 @@ namespace sprout { // pi // template - SPROUT_CONSTEXPR inline T pi() { + inline SPROUT_CONSTEXPR T pi() { return 3.141592653589793238462643383279502884197169399375105820974944L; } // // pi_div_two // template - SPROUT_CONSTEXPR inline T pi_div_two() { + inline SPROUT_CONSTEXPR T pi_div_two() { return 1.570796326794896619231321691639751442098584699687552910487472L; } } // namespace math diff --git a/sprout/numeric/accumulate.hpp b/sprout/numeric/accumulate.hpp index acacf497..9eb3c598 100644 --- a/sprout/numeric/accumulate.hpp +++ b/sprout/numeric/accumulate.hpp @@ -10,14 +10,14 @@ namespace sprout { // 26.7.2 Accumulate template - SPROUT_CONSTEXPR T accumulate(InputIterator first, InputIterator last, T init, BinaryOperation binary_op) { + inline SPROUT_CONSTEXPR T accumulate(InputIterator first, InputIterator last, T init, BinaryOperation binary_op) { return first == last ? init : sprout::accumulate(sprout::next(first), last, binary_op(init, *first), binary_op) ; } template - SPROUT_CONSTEXPR T accumulate(InputIterator first, InputIterator last, T init) { + inline SPROUT_CONSTEXPR T accumulate(InputIterator first, InputIterator last, T init) { return sprout::accumulate(first, last, init, NS_SSCRISK_CEL_OR_SPROUT::plus::value_type>()); } } // namespace sprout diff --git a/sprout/numeric/fit/adjacent_difference.hpp b/sprout/numeric/fit/adjacent_difference.hpp index 99a8fb30..b31198b9 100644 --- a/sprout/numeric/fit/adjacent_difference.hpp +++ b/sprout/numeric/fit/adjacent_difference.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type adjacent_difference_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type adjacent_difference_impl( InputIterator first, InputIterator last, Result const& result, @@ -32,7 +32,7 @@ namespace sprout { // adjacent_difference // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type adjacent_difference( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type adjacent_difference( InputIterator first, InputIterator last, Result const& result @@ -43,7 +43,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type adjacent_difference_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type adjacent_difference_impl( InputIterator first, InputIterator last, Result const& result, @@ -62,7 +62,7 @@ namespace sprout { // adjacent_difference // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type adjacent_difference( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type adjacent_difference( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/numeric/fit/iota.hpp b/sprout/numeric/fit/iota.hpp index ff6f6ff1..91a77147 100644 --- a/sprout/numeric/fit/iota.hpp +++ b/sprout/numeric/fit/iota.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type iota_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type iota_impl( Container const& cont, T const& value, typename sprout::container_traits::difference_type offset @@ -29,7 +29,7 @@ namespace sprout { // iota // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type iota( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type iota( Container const& cont, T const& value ) diff --git a/sprout/numeric/fit/partial_sum.hpp b/sprout/numeric/fit/partial_sum.hpp index 691dde53..9395f0fa 100644 --- a/sprout/numeric/fit/partial_sum.hpp +++ b/sprout/numeric/fit/partial_sum.hpp @@ -14,7 +14,7 @@ namespace sprout { namespace fit { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partial_sum_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partial_sum_impl( InputIterator first, InputIterator last, Result const& result, @@ -32,7 +32,7 @@ namespace sprout { // partial_sum // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partial_sum( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partial_sum( InputIterator first, InputIterator last, Result const& result @@ -43,7 +43,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partial_sum_impl( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partial_sum_impl( InputIterator first, InputIterator last, Result const& result, @@ -62,7 +62,7 @@ namespace sprout { // partial_sum // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partial_sum( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partial_sum( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/numeric/fixed/adjacent_difference.hpp b/sprout/numeric/fixed/adjacent_difference.hpp index 939c3817..c66cef32 100644 --- a/sprout/numeric/fixed/adjacent_difference.hpp +++ b/sprout/numeric/fixed/adjacent_difference.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl_1( @@ -27,7 +27,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl_1( @@ -45,7 +45,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == 0, typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl( @@ -58,7 +58,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result)); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != 0, typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl_1( @@ -78,7 +78,7 @@ namespace sprout { // adjacent_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type adjacent_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type adjacent_difference( InputIterator first, InputIterator last, Result const& result @@ -89,7 +89,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl_1( @@ -105,7 +105,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl_1( @@ -124,7 +124,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == 0, typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl( @@ -138,7 +138,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result)); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != 0, typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl_1( @@ -159,7 +159,7 @@ namespace sprout { // adjacent_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type adjacent_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type adjacent_difference( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/numeric/fixed/iota.hpp b/sprout/numeric/fixed/iota.hpp index bda51561..0b3f29eb 100644 --- a/sprout/numeric/fixed/iota.hpp +++ b/sprout/numeric/fixed/iota.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type iota_impl( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type iota_impl( Container const& cont, sprout::index_tuple, T value, @@ -34,7 +34,7 @@ namespace sprout { // iota // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type iota( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type iota( Container const& cont, T value ) diff --git a/sprout/numeric/fixed/partial_sum.hpp b/sprout/numeric/fixed/partial_sum.hpp index dc1ef9c7..d9c222b6 100644 --- a/sprout/numeric/fixed/partial_sum.hpp +++ b/sprout/numeric/fixed/partial_sum.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace fixed { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args) + 1, typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl_1( @@ -27,7 +27,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args) + 1, typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl_1( @@ -45,7 +45,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == 0, typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl( @@ -58,7 +58,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result)); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != 0, typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl_1( @@ -78,7 +78,7 @@ namespace sprout { // partial_sum // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type partial_sum( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type partial_sum( InputIterator first, InputIterator last, Result const& result @@ -89,7 +89,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == sizeof...(Args) + 1, typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl_1( @@ -105,7 +105,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result), args...); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != sizeof...(Args) + 1, typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl_1( @@ -124,7 +124,7 @@ namespace sprout { ; } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size == 0, typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl( @@ -138,7 +138,7 @@ namespace sprout { return sprout::remake(result, sprout::size(result)); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::container_traits::static_size != 0, typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl_1( @@ -159,7 +159,7 @@ namespace sprout { // partial_sum // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type partial_sum( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type partial_sum( InputIterator first, InputIterator last, Result const& result, diff --git a/sprout/numeric/inner_product.hpp b/sprout/numeric/inner_product.hpp index db9a364c..7e47b9a7 100644 --- a/sprout/numeric/inner_product.hpp +++ b/sprout/numeric/inner_product.hpp @@ -11,7 +11,7 @@ namespace sprout { // 26.7.3 Inner product template - SPROUT_CONSTEXPR T inner_product( + inline SPROUT_CONSTEXPR T inner_product( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, @@ -33,7 +33,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR T inner_product( + inline SPROUT_CONSTEXPR T inner_product( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, diff --git a/sprout/operation/fit/append.hpp b/sprout/operation/fit/append.hpp index 57a12e32..d6449aea 100644 --- a/sprout/operation/fit/append.hpp +++ b/sprout/operation/fit/append.hpp @@ -28,7 +28,7 @@ namespace sprout { // append // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::append::type append( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::append::type append( Container const& cont, typename sprout::container_traits::const_iterator pos, Input const& input @@ -44,7 +44,7 @@ namespace sprout { // append // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::append::type append( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::append::type append( Container const& cont, typename sprout::container_traits::difference_type pos, Input const& input diff --git a/sprout/operation/fit/append_back.hpp b/sprout/operation/fit/append_back.hpp index cea32b09..4638c42d 100644 --- a/sprout/operation/fit/append_back.hpp +++ b/sprout/operation/fit/append_back.hpp @@ -27,7 +27,7 @@ namespace sprout { // append_back // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::append_back::type append_back( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::append_back::type append_back( Container const& cont, Input const& input ) diff --git a/sprout/operation/fit/append_front.hpp b/sprout/operation/fit/append_front.hpp index 3732aa7e..a77b77eb 100644 --- a/sprout/operation/fit/append_front.hpp +++ b/sprout/operation/fit/append_front.hpp @@ -27,7 +27,7 @@ namespace sprout { // append_front // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::append_front::type append_front( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::append_front::type append_front( Container const& cont, Input const& input ) diff --git a/sprout/operation/fit/erase.hpp b/sprout/operation/fit/erase.hpp index 6ba2ac9c..791a90c4 100644 --- a/sprout/operation/fit/erase.hpp +++ b/sprout/operation/fit/erase.hpp @@ -29,7 +29,7 @@ namespace sprout { // erase // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::erase::type erase( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::erase::type erase( Container const& cont, typename sprout::container_traits::const_iterator pos ) @@ -44,7 +44,7 @@ namespace sprout { // erase // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::erase::type erase( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::erase::type erase( Container const& cont, typename sprout::container_traits::difference_type pos ) diff --git a/sprout/operation/fit/erase_n.hpp b/sprout/operation/fit/erase_n.hpp index 89c673fc..4e3e5cea 100644 --- a/sprout/operation/fit/erase_n.hpp +++ b/sprout/operation/fit/erase_n.hpp @@ -29,7 +29,7 @@ namespace sprout { // erase_n // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::erase_n::type erase_n( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::erase_n::type erase_n( Container const& cont, typename sprout::container_traits::const_iterator pos ) @@ -44,7 +44,7 @@ namespace sprout { // erase_n // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::erase_n::type erase_n( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::erase_n::type erase_n( Container const& cont, typename sprout::container_traits::difference_type pos ) diff --git a/sprout/operation/fit/insert.hpp b/sprout/operation/fit/insert.hpp index 112c88a5..ab0c1233 100644 --- a/sprout/operation/fit/insert.hpp +++ b/sprout/operation/fit/insert.hpp @@ -29,7 +29,7 @@ namespace sprout { // insert // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::insert::type insert( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::insert::type insert( Container const& cont, typename sprout::container_traits::const_iterator pos, T const& v, @@ -46,7 +46,7 @@ namespace sprout { // insert // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::insert::type insert( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::insert::type insert( Container const& cont, typename sprout::container_traits::difference_type pos, T const& v, diff --git a/sprout/operation/fit/insert_n.hpp b/sprout/operation/fit/insert_n.hpp index 9c3c461d..efac2b77 100644 --- a/sprout/operation/fit/insert_n.hpp +++ b/sprout/operation/fit/insert_n.hpp @@ -29,7 +29,7 @@ namespace sprout { // insert_n // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::insert_n::type insert_n( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::insert_n::type insert_n( Container const& cont, typename sprout::container_traits::const_iterator pos, T const& v, @@ -46,7 +46,7 @@ namespace sprout { // insert_n // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::insert_n::type insert_n( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::insert_n::type insert_n( Container const& cont, typename sprout::container_traits::difference_type pos, T const& v, diff --git a/sprout/operation/fit/pop_back.hpp b/sprout/operation/fit/pop_back.hpp index 413bf364..03bd710f 100644 --- a/sprout/operation/fit/pop_back.hpp +++ b/sprout/operation/fit/pop_back.hpp @@ -29,7 +29,7 @@ namespace sprout { // pop_back // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::pop_back::type pop_back( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::pop_back::type pop_back( Container const& cont ) { diff --git a/sprout/operation/fit/pop_back_n.hpp b/sprout/operation/fit/pop_back_n.hpp index 80217014..2f86587f 100644 --- a/sprout/operation/fit/pop_back_n.hpp +++ b/sprout/operation/fit/pop_back_n.hpp @@ -29,7 +29,7 @@ namespace sprout { // pop_back_n // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::pop_back_n::type pop_back_n( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::pop_back_n::type pop_back_n( Container const& cont ) { diff --git a/sprout/operation/fit/pop_front.hpp b/sprout/operation/fit/pop_front.hpp index 55698bbe..ccc0d433 100644 --- a/sprout/operation/fit/pop_front.hpp +++ b/sprout/operation/fit/pop_front.hpp @@ -29,7 +29,7 @@ namespace sprout { // pop_front // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::pop_front::type pop_front( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::pop_front::type pop_front( Container const& cont ) { diff --git a/sprout/operation/fit/pop_front_n.hpp b/sprout/operation/fit/pop_front_n.hpp index 6dc55802..1127da17 100644 --- a/sprout/operation/fit/pop_front_n.hpp +++ b/sprout/operation/fit/pop_front_n.hpp @@ -29,7 +29,7 @@ namespace sprout { // pop_front_n // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::pop_front_n::type pop_front_n( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::pop_front_n::type pop_front_n( Container const& cont ) { diff --git a/sprout/operation/fit/push_back.hpp b/sprout/operation/fit/push_back.hpp index 6a6502e2..2d6155e3 100644 --- a/sprout/operation/fit/push_back.hpp +++ b/sprout/operation/fit/push_back.hpp @@ -28,7 +28,7 @@ namespace sprout { // push_back // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::push_back::type push_back( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::push_back::type push_back( Container const& cont, T const& v, Values const&... values diff --git a/sprout/operation/fit/push_back_n.hpp b/sprout/operation/fit/push_back_n.hpp index 57b91a14..00a9810f 100644 --- a/sprout/operation/fit/push_back_n.hpp +++ b/sprout/operation/fit/push_back_n.hpp @@ -28,7 +28,7 @@ namespace sprout { // push_back_n // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::push_back_n::type push_back_n( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::push_back_n::type push_back_n( Container const& cont, T const& v, Values const&... values diff --git a/sprout/operation/fit/push_front.hpp b/sprout/operation/fit/push_front.hpp index 6f9d9539..39257b72 100644 --- a/sprout/operation/fit/push_front.hpp +++ b/sprout/operation/fit/push_front.hpp @@ -28,7 +28,7 @@ namespace sprout { // push_front // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::push_front::type push_front( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::push_front::type push_front( Container const& cont, T const& v, Values const&... values diff --git a/sprout/operation/fit/push_front_n.hpp b/sprout/operation/fit/push_front_n.hpp index f01b971f..578bfcb6 100644 --- a/sprout/operation/fit/push_front_n.hpp +++ b/sprout/operation/fit/push_front_n.hpp @@ -28,7 +28,7 @@ namespace sprout { // push_front_n // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::push_front_n::type push_front_n( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::push_front_n::type push_front_n( Container const& cont, T const& v, Values const&... values diff --git a/sprout/operation/fit/realign.hpp b/sprout/operation/fit/realign.hpp index 87db9265..73f5ee9c 100644 --- a/sprout/operation/fit/realign.hpp +++ b/sprout/operation/fit/realign.hpp @@ -28,7 +28,7 @@ namespace sprout { // realign // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::realign::type realign( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::realign::type realign( Container const& cont, T const& v ) @@ -44,7 +44,7 @@ namespace sprout { // realign // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::realign::type realign( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::realign::type realign( Container const& cont ) { diff --git a/sprout/operation/fit/realign_to.hpp b/sprout/operation/fit/realign_to.hpp index 16b0e1dc..9d25b38c 100644 --- a/sprout/operation/fit/realign_to.hpp +++ b/sprout/operation/fit/realign_to.hpp @@ -28,7 +28,7 @@ namespace sprout { // realign_to // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::realign_to::type realign_to( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::realign_to::type realign_to( Container const& cont, T const& v ) @@ -44,7 +44,7 @@ namespace sprout { // realign_to // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::realign_to::type realign_to( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::realign_to::type realign_to( Container const& cont ) { diff --git a/sprout/operation/fit/resize.hpp b/sprout/operation/fit/resize.hpp index 4339a1de..2059dee7 100644 --- a/sprout/operation/fit/resize.hpp +++ b/sprout/operation/fit/resize.hpp @@ -29,7 +29,7 @@ namespace sprout { // resize // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::resize::type resize( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::resize::type resize( Container const& cont, T const& v ) @@ -45,7 +45,7 @@ namespace sprout { // resize // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::resize::type resize( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::resize::type resize( Container const& cont ) { diff --git a/sprout/operation/fit/resize_backward.hpp b/sprout/operation/fit/resize_backward.hpp index 4e4285c4..812a60cb 100644 --- a/sprout/operation/fit/resize_backward.hpp +++ b/sprout/operation/fit/resize_backward.hpp @@ -29,7 +29,7 @@ namespace sprout { // resize_backward // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::resize_backward::type resize_backward( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::resize_backward::type resize_backward( Container const& cont, T const& v ) @@ -45,7 +45,7 @@ namespace sprout { // resize_backward // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::resize_backward::type resize_backward( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::resize_backward::type resize_backward( Container const& cont ) { diff --git a/sprout/operation/fit/set.hpp b/sprout/operation/fit/set.hpp index 311bb7c3..1151f0f8 100644 --- a/sprout/operation/fit/set.hpp +++ b/sprout/operation/fit/set.hpp @@ -29,7 +29,7 @@ namespace sprout { // set // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::set::type set( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::set::type set( Container const& cont, typename sprout::container_traits::const_iterator pos, T const& v @@ -45,7 +45,7 @@ namespace sprout { // set // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::set::type set( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::set::type set( Container const& cont, typename sprout::container_traits::difference_type pos, T const& v diff --git a/sprout/operation/fixed/append.hpp b/sprout/operation/fixed/append.hpp index dc441dc2..84b285b2 100644 --- a/sprout/operation/fixed/append.hpp +++ b/sprout/operation/fixed/append.hpp @@ -27,7 +27,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result append_impl( + inline SPROUT_CONSTEXPR Result append_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type pos, @@ -54,7 +54,7 @@ namespace sprout { // append // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::append::type append( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::append::type append( Container const& cont, typename sprout::container_traits::const_iterator pos, Input const& input @@ -72,7 +72,7 @@ namespace sprout { // append // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::append::type append( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::append::type append( Container const& cont, typename sprout::container_traits::difference_type pos, Input const& input diff --git a/sprout/operation/fixed/append_back.hpp b/sprout/operation/fixed/append_back.hpp index cfc0507e..dc11edde 100644 --- a/sprout/operation/fixed/append_back.hpp +++ b/sprout/operation/fixed/append_back.hpp @@ -24,7 +24,7 @@ namespace sprout { // append_back // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::append_back::type append_back( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::append_back::type append_back( Container const& cont, Input const& input ) diff --git a/sprout/operation/fixed/append_front.hpp b/sprout/operation/fixed/append_front.hpp index d0e9454d..471263c8 100644 --- a/sprout/operation/fixed/append_front.hpp +++ b/sprout/operation/fixed/append_front.hpp @@ -24,7 +24,7 @@ namespace sprout { // append_front // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::append_front::type append_front( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::append_front::type append_front( Container const& cont, Input const& input ) diff --git a/sprout/operation/fixed/erase.hpp b/sprout/operation/fixed/erase.hpp index cb6d405f..6b5ba538 100644 --- a/sprout/operation/fixed/erase.hpp +++ b/sprout/operation/fixed/erase.hpp @@ -28,7 +28,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result erase_impl( + inline SPROUT_CONSTEXPR Result erase_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type pos @@ -51,7 +51,7 @@ namespace sprout { // erase // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::erase::type erase( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::erase::type erase( Container const& cont, typename sprout::container_traits::const_iterator pos ) @@ -66,7 +66,7 @@ namespace sprout { // erase // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::erase::type erase( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::erase::type erase( Container const& cont, typename sprout::container_traits::difference_type pos ) diff --git a/sprout/operation/fixed/erase_n.hpp b/sprout/operation/fixed/erase_n.hpp index b340b400..aa9d6dd7 100644 --- a/sprout/operation/fixed/erase_n.hpp +++ b/sprout/operation/fixed/erase_n.hpp @@ -29,7 +29,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result erase_n_impl( + inline SPROUT_CONSTEXPR Result erase_n_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type pos @@ -52,7 +52,7 @@ namespace sprout { // erase_n // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::erase_n::type erase_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::erase_n::type erase_n( Container const& cont, typename sprout::container_traits::const_iterator pos ) @@ -67,7 +67,7 @@ namespace sprout { // erase_n // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::erase_n::type erase_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::erase_n::type erase_n( Container const& cont, typename sprout::container_traits::difference_type pos ) diff --git a/sprout/operation/fixed/insert.hpp b/sprout/operation/fixed/insert.hpp index 4205b519..d2510dee 100644 --- a/sprout/operation/fixed/insert.hpp +++ b/sprout/operation/fixed/insert.hpp @@ -29,7 +29,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result insert_impl( + inline SPROUT_CONSTEXPR Result insert_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type pos, @@ -56,7 +56,7 @@ namespace sprout { // insert // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::insert::type insert( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::insert::type insert( Container const& cont, typename sprout::container_traits::const_iterator pos, T const& v, @@ -75,7 +75,7 @@ namespace sprout { // insert // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::insert::type insert( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::insert::type insert( Container const& cont, typename sprout::container_traits::difference_type pos, T const& v, diff --git a/sprout/operation/fixed/insert_n.hpp b/sprout/operation/fixed/insert_n.hpp index 2af436e9..ccec4f66 100644 --- a/sprout/operation/fixed/insert_n.hpp +++ b/sprout/operation/fixed/insert_n.hpp @@ -31,7 +31,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result insert_n_impl( + inline SPROUT_CONSTEXPR Result insert_n_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type pos, @@ -58,7 +58,7 @@ namespace sprout { // insert_n // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::insert_n::type insert_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::insert_n::type insert_n( Container const& cont, typename sprout::container_traits::const_iterator pos, T const& v, @@ -77,7 +77,7 @@ namespace sprout { // insert_n // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::insert_n::type insert_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::insert_n::type insert_n( Container const& cont, typename sprout::container_traits::difference_type pos, T const& v, diff --git a/sprout/operation/fixed/pop_back.hpp b/sprout/operation/fixed/pop_back.hpp index 9d3cb219..16f27e29 100644 --- a/sprout/operation/fixed/pop_back.hpp +++ b/sprout/operation/fixed/pop_back.hpp @@ -24,7 +24,7 @@ namespace sprout { // pop_back // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::pop_back::type pop_back( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::pop_back::type pop_back( Container const& cont ) { diff --git a/sprout/operation/fixed/pop_back_n.hpp b/sprout/operation/fixed/pop_back_n.hpp index 615d5f63..f4bea30c 100644 --- a/sprout/operation/fixed/pop_back_n.hpp +++ b/sprout/operation/fixed/pop_back_n.hpp @@ -24,7 +24,7 @@ namespace sprout { // pop_back_n // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::pop_back_n::type pop_back_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::pop_back_n::type pop_back_n( Container const& cont ) { diff --git a/sprout/operation/fixed/pop_front.hpp b/sprout/operation/fixed/pop_front.hpp index b150af39..b313ef7e 100644 --- a/sprout/operation/fixed/pop_front.hpp +++ b/sprout/operation/fixed/pop_front.hpp @@ -24,7 +24,7 @@ namespace sprout { // pop_front // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::pop_front::type pop_front( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::pop_front::type pop_front( Container const& cont ) { diff --git a/sprout/operation/fixed/pop_front_n.hpp b/sprout/operation/fixed/pop_front_n.hpp index ef8ca352..6d7ab78e 100644 --- a/sprout/operation/fixed/pop_front_n.hpp +++ b/sprout/operation/fixed/pop_front_n.hpp @@ -24,7 +24,7 @@ namespace sprout { // pop_front_n // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::pop_front_n::type pop_front_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::pop_front_n::type pop_front_n( Container const& cont ) { diff --git a/sprout/operation/fixed/push_back.hpp b/sprout/operation/fixed/push_back.hpp index 3e7b5b1c..5d88a43d 100644 --- a/sprout/operation/fixed/push_back.hpp +++ b/sprout/operation/fixed/push_back.hpp @@ -24,7 +24,7 @@ namespace sprout { // push_back // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::push_back::type push_back( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::push_back::type push_back( Container const& cont, T const& v, Values const&... values diff --git a/sprout/operation/fixed/push_back_n.hpp b/sprout/operation/fixed/push_back_n.hpp index 511243b4..23d1d1f2 100644 --- a/sprout/operation/fixed/push_back_n.hpp +++ b/sprout/operation/fixed/push_back_n.hpp @@ -24,7 +24,7 @@ namespace sprout { // push_back_n // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::push_back_n::type push_back_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::push_back_n::type push_back_n( Container const& cont, T const& v, Values const&... values diff --git a/sprout/operation/fixed/push_front.hpp b/sprout/operation/fixed/push_front.hpp index 9253da72..779b3b18 100644 --- a/sprout/operation/fixed/push_front.hpp +++ b/sprout/operation/fixed/push_front.hpp @@ -24,7 +24,7 @@ namespace sprout { // push_front // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::push_front::type push_front( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::push_front::type push_front( Container const& cont, T const& v, Values const&... values diff --git a/sprout/operation/fixed/push_front_n.hpp b/sprout/operation/fixed/push_front_n.hpp index 83370eb9..44f0d435 100644 --- a/sprout/operation/fixed/push_front_n.hpp +++ b/sprout/operation/fixed/push_front_n.hpp @@ -24,7 +24,7 @@ namespace sprout { // push_front_n // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::push_front_n::type push_front_n( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::push_front_n::type push_front_n( Container const& cont, T const& v, Values const&... values diff --git a/sprout/operation/fixed/realign.hpp b/sprout/operation/fixed/realign.hpp index 749561fa..e6698377 100644 --- a/sprout/operation/fixed/realign.hpp +++ b/sprout/operation/fixed/realign.hpp @@ -22,7 +22,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result realign_impl( + inline SPROUT_CONSTEXPR Result realign_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type size, @@ -41,7 +41,7 @@ namespace sprout { // realign // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::realign::type realign( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::realign::type realign( Container const& cont, T const& v ) @@ -56,7 +56,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result realign_impl( + inline SPROUT_CONSTEXPR Result realign_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type size @@ -74,7 +74,7 @@ namespace sprout { // realign // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::realign::type realign( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::realign::type realign( Container const& cont ) { diff --git a/sprout/operation/fixed/realign_to.hpp b/sprout/operation/fixed/realign_to.hpp index b5777b66..2bc85174 100644 --- a/sprout/operation/fixed/realign_to.hpp +++ b/sprout/operation/fixed/realign_to.hpp @@ -25,7 +25,7 @@ namespace sprout { // realign_to // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::realign_to::type realign_to( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::realign_to::type realign_to( Container const& cont, T const& v ) @@ -42,7 +42,7 @@ namespace sprout { // realign_to // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::realign_to::type realign_to( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::realign_to::type realign_to( Container const& cont ) { diff --git a/sprout/operation/fixed/resize.hpp b/sprout/operation/fixed/resize.hpp index 7f96846f..01a3b14a 100644 --- a/sprout/operation/fixed/resize.hpp +++ b/sprout/operation/fixed/resize.hpp @@ -27,7 +27,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result resize_impl( + inline SPROUT_CONSTEXPR Result resize_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type size, @@ -46,7 +46,7 @@ namespace sprout { // resize // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::resize::type resize( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::resize::type resize( Container const& cont, T const& v ) @@ -61,7 +61,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result resize_impl( + inline SPROUT_CONSTEXPR Result resize_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type size @@ -79,7 +79,7 @@ namespace sprout { // resize // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::resize::type resize( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::resize::type resize( Container const& cont ) { diff --git a/sprout/operation/fixed/resize_backward.hpp b/sprout/operation/fixed/resize_backward.hpp index e3866f93..5cd6d622 100644 --- a/sprout/operation/fixed/resize_backward.hpp +++ b/sprout/operation/fixed/resize_backward.hpp @@ -23,7 +23,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result resize_backward_impl( + inline SPROUT_CONSTEXPR Result resize_backward_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type size, @@ -43,7 +43,7 @@ namespace sprout { // resize_backward // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::resize_backward::type resize_backward( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::resize_backward::type resize_backward( Container const& cont, T const& v ) @@ -62,7 +62,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result resize_backward_impl( + inline SPROUT_CONSTEXPR Result resize_backward_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type size, @@ -81,7 +81,7 @@ namespace sprout { // resize_backward // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::resize_backward::type resize_backward( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::resize_backward::type resize_backward( Container const& cont ) { diff --git a/sprout/operation/fixed/set.hpp b/sprout/operation/fixed/set.hpp index ffd247a4..30d9609e 100644 --- a/sprout/operation/fixed/set.hpp +++ b/sprout/operation/fixed/set.hpp @@ -23,7 +23,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result set_impl( + inline SPROUT_CONSTEXPR Result set_impl( Container const& cont, sprout::index_tuple, typename sprout::container_traits::difference_type pos, @@ -44,7 +44,7 @@ namespace sprout { // set // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::set::type set( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::set::type set( Container const& cont, typename sprout::container_traits::const_iterator pos, T const& v @@ -61,7 +61,7 @@ namespace sprout { // set // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::set::type set( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::set::type set( Container const& cont, typename sprout::container_traits::difference_type pos, T const& v diff --git a/sprout/pit.hpp b/sprout/pit.hpp index 9288f969..53ba3d14 100644 --- a/sprout/pit.hpp +++ b/sprout/pit.hpp @@ -137,27 +137,27 @@ namespace sprout { // operator>= // template - SPROUT_CONSTEXPR inline bool operator==(sprout::pit const& lhs, sprout::pit const& rhs) { + inline SPROUT_CONSTEXPR bool operator==(sprout::pit const& lhs, sprout::pit const& rhs) { return lhs.front() == rhs.front(); } template - SPROUT_CONSTEXPR inline bool operator!=(sprout::pit const& lhs, sprout::pit const& rhs) { + inline SPROUT_CONSTEXPR bool operator!=(sprout::pit const& lhs, sprout::pit const& rhs) { return !(lhs == rhs); } template - SPROUT_CONSTEXPR inline bool operator<(sprout::pit const& lhs, sprout::pit const& rhs) { + inline SPROUT_CONSTEXPR bool operator<(sprout::pit const& lhs, sprout::pit const& rhs) { return lhs.front() < rhs.front(); } template - SPROUT_CONSTEXPR inline bool operator>(sprout::pit const& lhs, sprout::pit const& rhs) { + inline SPROUT_CONSTEXPR bool operator>(sprout::pit const& lhs, sprout::pit const& rhs) { return rhs < lhs; } template - SPROUT_CONSTEXPR inline bool operator<=(sprout::pit const& lhs, sprout::pit const& rhs) { + inline SPROUT_CONSTEXPR bool operator<=(sprout::pit const& lhs, sprout::pit const& rhs) { return !(rhs < lhs); } template - SPROUT_CONSTEXPR inline bool operator>=(sprout::pit const& lhs, sprout::pit const& rhs) { + inline SPROUT_CONSTEXPR bool operator>=(sprout::pit const& lhs, sprout::pit const& rhs) { return !(lhs < rhs); } diff --git a/sprout/range/algorithm/adjacent_find.hpp b/sprout/range/algorithm/adjacent_find.hpp index 6caf6ebe..a1e4786d 100644 --- a/sprout/range/algorithm/adjacent_find.hpp +++ b/sprout/range/algorithm/adjacent_find.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.2.8 Adjacent find template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type adjacent_find(Range&& range) { return sprout::range::range_return::pack( sprout::adjacent_find( @@ -25,7 +25,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type adjacent_find(Range&& range, BinaryPredicate pred) { return sprout::range::range_return::pack( sprout::adjacent_find( @@ -38,7 +38,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type adjacent_find(Range&& range) { return sprout::range::range_return::pack( sprout::adjacent_find( @@ -50,7 +50,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type adjacent_find(Range&& range, BinaryPredicate pred) { return sprout::range::range_return::pack( sprout::adjacent_find( diff --git a/sprout/range/algorithm/all_of.hpp b/sprout/range/algorithm/all_of.hpp index 35c08a68..d829fe9a 100644 --- a/sprout/range/algorithm/all_of.hpp +++ b/sprout/range/algorithm/all_of.hpp @@ -11,7 +11,7 @@ namespace sprout { // 25.2.1 All of template - SPROUT_CONSTEXPR bool all_of(Range const& range, Predicate pred) { + inline SPROUT_CONSTEXPR bool all_of(Range const& range, Predicate pred) { return sprout::all_of(sprout::begin(range), sprout::end(range), pred); } } // namespace range diff --git a/sprout/range/algorithm/any_of.hpp b/sprout/range/algorithm/any_of.hpp index 70eb9be4..d9032538 100644 --- a/sprout/range/algorithm/any_of.hpp +++ b/sprout/range/algorithm/any_of.hpp @@ -11,7 +11,7 @@ namespace sprout { // 25.2.2 Any of template - SPROUT_CONSTEXPR bool any_of(Range const& range, Predicate pred) { + inline SPROUT_CONSTEXPR bool any_of(Range const& range, Predicate pred) { return sprout::any_of(sprout::begin(range), sprout::end(range), pred); } } // namespace range diff --git a/sprout/range/algorithm/binary_search.hpp b/sprout/range/algorithm/binary_search.hpp index c3b4fd59..f36b5340 100644 --- a/sprout/range/algorithm/binary_search.hpp +++ b/sprout/range/algorithm/binary_search.hpp @@ -11,12 +11,12 @@ namespace sprout { // 25.4.3.4 binary_search template - SPROUT_CONSTEXPR bool binary_search(Range const& range, T const& value) { + inline SPROUT_CONSTEXPR bool binary_search(Range const& range, T const& value) { return sprout::binary_search(sprout::begin(range), sprout::end(range), value); } template - SPROUT_CONSTEXPR bool binary_search(Range const& range, T const& value, Compare comp) { + inline SPROUT_CONSTEXPR bool binary_search(Range const& range, T const& value, Compare comp) { return sprout::binary_search(sprout::begin(range), sprout::end(range), value, comp); } } // namespace range diff --git a/sprout/range/algorithm/count.hpp b/sprout/range/algorithm/count.hpp index 8c780e80..5f625f85 100644 --- a/sprout/range/algorithm/count.hpp +++ b/sprout/range/algorithm/count.hpp @@ -12,7 +12,7 @@ namespace sprout { // 25.2.9 Count template - SPROUT_CONSTEXPR typename sprout::container_traits::difference_type + inline SPROUT_CONSTEXPR typename sprout::container_traits::difference_type count(Range const& range, T const& value) { return sprout::count(sprout::begin(range), sprout::end(range), value); } diff --git a/sprout/range/algorithm/count_if.hpp b/sprout/range/algorithm/count_if.hpp index 34ff8ff7..2af5f103 100644 --- a/sprout/range/algorithm/count_if.hpp +++ b/sprout/range/algorithm/count_if.hpp @@ -12,7 +12,7 @@ namespace sprout { // 25.2.9 Count template - SPROUT_CONSTEXPR typename sprout::container_traits::difference_type + inline SPROUT_CONSTEXPR typename sprout::container_traits::difference_type count_if(Range const& range, Predicate pred) { return sprout::count_if(sprout::begin(range), sprout::end(range), pred); } diff --git a/sprout/range/algorithm/equal.hpp b/sprout/range/algorithm/equal.hpp index c648d60b..70dd01b7 100644 --- a/sprout/range/algorithm/equal.hpp +++ b/sprout/range/algorithm/equal.hpp @@ -11,12 +11,12 @@ namespace sprout { // 25.2.11 Equal template - SPROUT_CONSTEXPR bool equal(Range1 const& range1, Range2 const& range2) { + inline SPROUT_CONSTEXPR bool equal(Range1 const& range1, Range2 const& range2) { return sprout::equal(sprout::begin(range1), sprout::end(range1), sprout::begin(range2)); } template - SPROUT_CONSTEXPR bool equal(Range1 const& range1, Range2 const& range2, BinaryPredicate pred) { + inline SPROUT_CONSTEXPR bool equal(Range1 const& range1, Range2 const& range2, BinaryPredicate pred) { return sprout::equal(sprout::begin(range1), sprout::end(range1), sprout::begin(range2), pred); } } // namespace range diff --git a/sprout/range/algorithm/equal_range.hpp b/sprout/range/algorithm/equal_range.hpp index 4ceee4ca..9a7662b2 100644 --- a/sprout/range/algorithm/equal_range.hpp +++ b/sprout/range/algorithm/equal_range.hpp @@ -11,7 +11,7 @@ namespace sprout { namespace range { namespace detail { template - SPROUT_CONSTEXPR typename sprout::range::lvref_range::type + inline SPROUT_CONSTEXPR typename sprout::range::lvref_range::type pair_to_range(Pair const& pair) { return {pair.first, pair.second}; } @@ -21,7 +21,7 @@ namespace sprout { // 25.4.3.3 equal_range template - SPROUT_CONSTEXPR typename sprout::range::lvref_range::type + inline SPROUT_CONSTEXPR typename sprout::range::lvref_range::type equal_range(Range&& range, T const& value) { return sprout::range::detail::pair_to_range( sprout::equal_range( @@ -33,7 +33,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::lvref_range::type + inline SPROUT_CONSTEXPR typename sprout::range::lvref_range::type equal_range(Range&& range, T const& value, Compare comp) { return sprout::range::detail::pair_to_range( sprout::equal_range( diff --git a/sprout/range/algorithm/find.hpp b/sprout/range/algorithm/find.hpp index c35f8867..07b89f84 100644 --- a/sprout/range/algorithm/find.hpp +++ b/sprout/range/algorithm/find.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.2.5 Find template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find(Range&& range, T const& value) { return sprout::range::range_return::pack( sprout::find( @@ -26,7 +26,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find(Range&& range, T const& value) { return sprout::range::range_return::pack( sprout::find( diff --git a/sprout/range/algorithm/find_end.hpp b/sprout/range/algorithm/find_end.hpp index 2e14fc3b..a03fb3fa 100644 --- a/sprout/range/algorithm/find_end.hpp +++ b/sprout/range/algorithm/find_end.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.2.6 Find end template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_end(Range1&& range1, Range2&& range2) { return sprout::range::range_return::pack( sprout::find_end( @@ -27,7 +27,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_end(Range1&& range1, Range2&& range2, BinaryPredicate pred) { return sprout::range::range_return::pack( sprout::find_end( @@ -42,7 +42,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_end(Range1&& range1, Range2&& range2) { return sprout::range::range_return::pack( sprout::find_end( @@ -56,7 +56,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_end(Range1&& range1, Range2&& range2, BinaryPredicate pred) { return sprout::range::range_return::pack( sprout::find_end( diff --git a/sprout/range/algorithm/find_first_of.hpp b/sprout/range/algorithm/find_first_of.hpp index 5a425ac1..e0175284 100644 --- a/sprout/range/algorithm/find_first_of.hpp +++ b/sprout/range/algorithm/find_first_of.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.2.7 Find first template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_first_of(Range1&& range1, Range2&& range2) { return sprout::range::range_return::pack( sprout::find_first_of( @@ -27,7 +27,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_first_of(Range1&& range1, Range2&& range2, BinaryPredicate pred) { return sprout::range::range_return::pack( sprout::find_first_of( @@ -42,7 +42,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_first_of(Range1&& range1, Range2&& range2) { return sprout::range::range_return::pack( sprout::find_first_of( @@ -56,7 +56,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_first_of(Range1&& range1, Range2&& range2, BinaryPredicate pred) { return sprout::range::range_return::pack( sprout::find_first_of( diff --git a/sprout/range/algorithm/find_if.hpp b/sprout/range/algorithm/find_if.hpp index 01e21c90..7685f11b 100644 --- a/sprout/range/algorithm/find_if.hpp +++ b/sprout/range/algorithm/find_if.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.2.5 Find template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_if(Range&& range, Predicate pred) { return sprout::range::range_return::pack( sprout::find_if( @@ -26,7 +26,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_if(Range&& range, Predicate pred) { return sprout::range::range_return::pack( sprout::find_if( diff --git a/sprout/range/algorithm/find_if_not.hpp b/sprout/range/algorithm/find_if_not.hpp index 1cac4324..3d966521 100644 --- a/sprout/range/algorithm/find_if_not.hpp +++ b/sprout/range/algorithm/find_if_not.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.2.5 Find template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_if_not(Range&& range, Predicate pred) { return sprout::range::range_return::pack( sprout::find_if_not( @@ -26,7 +26,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type find_if_not(Range&& range, Predicate pred) { return sprout::range::range_return::pack( sprout::find_if_not( diff --git a/sprout/range/algorithm/fit/copy.hpp b/sprout/range/algorithm/fit/copy.hpp index efb4e9d7..ff686d89 100644 --- a/sprout/range/algorithm/fit/copy.hpp +++ b/sprout/range/algorithm/fit/copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type copy( Input const& input, Result const& result ) diff --git a/sprout/range/algorithm/fit/copy_backward.hpp b/sprout/range/algorithm/fit/copy_backward.hpp index b890d405..8e65a5f2 100644 --- a/sprout/range/algorithm/fit/copy_backward.hpp +++ b/sprout/range/algorithm/fit/copy_backward.hpp @@ -14,7 +14,7 @@ namespace sprout { // copy_backward // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type copy_backward( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type copy_backward( Input const& input, Result const& result ) diff --git a/sprout/range/algorithm/fit/copy_if.hpp b/sprout/range/algorithm/fit/copy_if.hpp index 5e0258fe..2d0383d1 100644 --- a/sprout/range/algorithm/fit/copy_if.hpp +++ b/sprout/range/algorithm/fit/copy_if.hpp @@ -14,7 +14,7 @@ namespace sprout { // copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type copy_if( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type copy_if( Input const& input, Result const& result ) diff --git a/sprout/range/algorithm/fit/merge.hpp b/sprout/range/algorithm/fit/merge.hpp index d9b96091..fb7a10d7 100644 --- a/sprout/range/algorithm/fit/merge.hpp +++ b/sprout/range/algorithm/fit/merge.hpp @@ -14,7 +14,7 @@ namespace sprout { // merge // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type merge( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type merge( Input1 const& input1, Input2 const& input2, Result const& result, @@ -28,7 +28,7 @@ namespace sprout { // merge // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type merge( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type merge( Input1 const& input1, Input2 const& input2, Result const& result diff --git a/sprout/range/algorithm/fit/partition_copy.hpp b/sprout/range/algorithm/fit/partition_copy.hpp index 17831914..a1be3cc4 100644 --- a/sprout/range/algorithm/fit/partition_copy.hpp +++ b/sprout/range/algorithm/fit/partition_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // partition_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partition_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partition_copy( Input const& input, Result const& result, Predicate pred diff --git a/sprout/range/algorithm/fit/remove_copy.hpp b/sprout/range/algorithm/fit/remove_copy.hpp index 0d4a5783..691f3bc0 100644 --- a/sprout/range/algorithm/fit/remove_copy.hpp +++ b/sprout/range/algorithm/fit/remove_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // remove_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type remove_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type remove_copy( Input const& input, Result const& result, T const& value diff --git a/sprout/range/algorithm/fit/remove_copy_if.hpp b/sprout/range/algorithm/fit/remove_copy_if.hpp index 76b70dc7..49267000 100644 --- a/sprout/range/algorithm/fit/remove_copy_if.hpp +++ b/sprout/range/algorithm/fit/remove_copy_if.hpp @@ -14,7 +14,7 @@ namespace sprout { // remove_copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type remove_copy_if( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type remove_copy_if( Input const& input, Result const& result, Predicate pred diff --git a/sprout/range/algorithm/fit/replace_copy.hpp b/sprout/range/algorithm/fit/replace_copy.hpp index 521c7ad8..c51e89e0 100644 --- a/sprout/range/algorithm/fit/replace_copy.hpp +++ b/sprout/range/algorithm/fit/replace_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // replace_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type replace_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type replace_copy( Input const& input, Result const& result, T const& old_value, diff --git a/sprout/range/algorithm/fit/replace_copy_if.hpp b/sprout/range/algorithm/fit/replace_copy_if.hpp index 1243a01a..6778f4fd 100644 --- a/sprout/range/algorithm/fit/replace_copy_if.hpp +++ b/sprout/range/algorithm/fit/replace_copy_if.hpp @@ -14,7 +14,7 @@ namespace sprout { // replace_copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type replace_copy_if( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type replace_copy_if( Input const& input, Result const& result, Predicate pred, diff --git a/sprout/range/algorithm/fit/reverse_copy.hpp b/sprout/range/algorithm/fit/reverse_copy.hpp index 1e1bf9cb..a43ceddd 100644 --- a/sprout/range/algorithm/fit/reverse_copy.hpp +++ b/sprout/range/algorithm/fit/reverse_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // reverse_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type reverse_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type reverse_copy( Input const& input, Result const& result ) diff --git a/sprout/range/algorithm/fit/rotate_copy.hpp b/sprout/range/algorithm/fit/rotate_copy.hpp index 3f0af6fb..1bcb0e73 100644 --- a/sprout/range/algorithm/fit/rotate_copy.hpp +++ b/sprout/range/algorithm/fit/rotate_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // rotate_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type rotate_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type rotate_copy( Input const& input, typename sprout::container_traits::const_iterator middle, Result const& result diff --git a/sprout/range/algorithm/fit/set_difference.hpp b/sprout/range/algorithm/fit/set_difference.hpp index 09cf84f7..74d564ad 100644 --- a/sprout/range/algorithm/fit/set_difference.hpp +++ b/sprout/range/algorithm/fit/set_difference.hpp @@ -14,7 +14,7 @@ namespace sprout { // set_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_difference( Input1 const& input1, Input2 const& input2, Result const& result, @@ -28,7 +28,7 @@ namespace sprout { // set_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_difference( Input1 const& input1, Input2 const& input2, Result const& result diff --git a/sprout/range/algorithm/fit/set_intersection.hpp b/sprout/range/algorithm/fit/set_intersection.hpp index dc128a81..af2bcca9 100644 --- a/sprout/range/algorithm/fit/set_intersection.hpp +++ b/sprout/range/algorithm/fit/set_intersection.hpp @@ -14,7 +14,7 @@ namespace sprout { // set_intersection // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_intersection( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_intersection( Input1 const& input1, Input2 const& input2, Result const& result, @@ -28,7 +28,7 @@ namespace sprout { // set_intersection // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_intersection( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_intersection( Input1 const& input1, Input2 const& input2, Result const& result diff --git a/sprout/range/algorithm/fit/set_symmetric_difference.hpp b/sprout/range/algorithm/fit/set_symmetric_difference.hpp index f2e9dddb..0ef2556c 100644 --- a/sprout/range/algorithm/fit/set_symmetric_difference.hpp +++ b/sprout/range/algorithm/fit/set_symmetric_difference.hpp @@ -14,7 +14,7 @@ namespace sprout { // set_symmetric_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( Input1 const& input1, Input2 const& input2, Result const& result, @@ -28,7 +28,7 @@ namespace sprout { // set_symmetric_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( Input1 const& input1, Input2 const& input2, Result const& result diff --git a/sprout/range/algorithm/fit/set_union.hpp b/sprout/range/algorithm/fit/set_union.hpp index b5490b64..857b60dd 100644 --- a/sprout/range/algorithm/fit/set_union.hpp +++ b/sprout/range/algorithm/fit/set_union.hpp @@ -14,7 +14,7 @@ namespace sprout { // set_union // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_union( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_union( Input1 const& input1, Input2 const& input2, Result const& result, @@ -28,7 +28,7 @@ namespace sprout { // set_union // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_union( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_union( Input1 const& input1, Input2 const& input2, Result const& result diff --git a/sprout/range/algorithm/fit/stable_partition_copy.hpp b/sprout/range/algorithm/fit/stable_partition_copy.hpp index f91b3154..727f6582 100644 --- a/sprout/range/algorithm/fit/stable_partition_copy.hpp +++ b/sprout/range/algorithm/fit/stable_partition_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // stable_partition_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type stable_partition_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type stable_partition_copy( Input const& input, Result const& result, Predicate pred diff --git a/sprout/range/algorithm/fit/swap_element_copy.hpp b/sprout/range/algorithm/fit/swap_element_copy.hpp index 24e9ce9a..986d1a7d 100644 --- a/sprout/range/algorithm/fit/swap_element_copy.hpp +++ b/sprout/range/algorithm/fit/swap_element_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // swap_element_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type swap_element_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type swap_element_copy( Input const& input, Result const& result, typename sprout::container_traits::const_iterator pos1, diff --git a/sprout/range/algorithm/fit/transform.hpp b/sprout/range/algorithm/fit/transform.hpp index a5106004..4dbf8e68 100644 --- a/sprout/range/algorithm/fit/transform.hpp +++ b/sprout/range/algorithm/fit/transform.hpp @@ -14,7 +14,7 @@ namespace sprout { // transform // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform( Input const& input, Result const& result, UnaryOperation op @@ -27,7 +27,7 @@ namespace sprout { // transform // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform( Input1 const& input1, Input2 const& input2, Result const& result, diff --git a/sprout/range/algorithm/fit/unique_copy.hpp b/sprout/range/algorithm/fit/unique_copy.hpp index 4a849649..63e7ea68 100644 --- a/sprout/range/algorithm/fit/unique_copy.hpp +++ b/sprout/range/algorithm/fit/unique_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // unique_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type unique_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type unique_copy( Input const& input, Result const& result ) @@ -26,7 +26,7 @@ namespace sprout { // unique_copy // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type unique_copy( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type unique_copy( Input const& input, Result const& result, BinaryPredicate pred diff --git a/sprout/range/algorithm/fixed/copy.hpp b/sprout/range/algorithm/fixed/copy.hpp index 32192ab6..81b3002f 100644 --- a/sprout/range/algorithm/fixed/copy.hpp +++ b/sprout/range/algorithm/fixed/copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy( Input const& input, Result const& result ) diff --git a/sprout/range/algorithm/fixed/copy_backward.hpp b/sprout/range/algorithm/fixed/copy_backward.hpp index b719b11e..979ef62b 100644 --- a/sprout/range/algorithm/fixed/copy_backward.hpp +++ b/sprout/range/algorithm/fixed/copy_backward.hpp @@ -14,7 +14,7 @@ namespace sprout { // copy_backward // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy_backward( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_backward( Input const& input, Result const& result ) diff --git a/sprout/range/algorithm/fixed/copy_if.hpp b/sprout/range/algorithm/fixed/copy_if.hpp index f2c44ec1..1e7dcea4 100644 --- a/sprout/range/algorithm/fixed/copy_if.hpp +++ b/sprout/range/algorithm/fixed/copy_if.hpp @@ -14,7 +14,7 @@ namespace sprout { // copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type copy_if( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_if( Input const& input, Result const& result ) diff --git a/sprout/range/algorithm/fixed/merge.hpp b/sprout/range/algorithm/fixed/merge.hpp index 5615d468..d37615e6 100644 --- a/sprout/range/algorithm/fixed/merge.hpp +++ b/sprout/range/algorithm/fixed/merge.hpp @@ -14,7 +14,7 @@ namespace sprout { // merge // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type merge( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type merge( Input1 const& input1, Input2 const& input2, Result const& result, @@ -28,7 +28,7 @@ namespace sprout { // merge // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type merge( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type merge( Input1 const& input1, Input2 const& input2, Result const& result diff --git a/sprout/range/algorithm/fixed/partition_copy.hpp b/sprout/range/algorithm/fixed/partition_copy.hpp index 63cac2e6..9fc1040d 100644 --- a/sprout/range/algorithm/fixed/partition_copy.hpp +++ b/sprout/range/algorithm/fixed/partition_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // partition_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type partition_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type partition_copy( Input const& input, Result const& result, Predicate pred diff --git a/sprout/range/algorithm/fixed/remove_copy.hpp b/sprout/range/algorithm/fixed/remove_copy.hpp index 1f0ada4a..ac332bca 100644 --- a/sprout/range/algorithm/fixed/remove_copy.hpp +++ b/sprout/range/algorithm/fixed/remove_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // remove_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type remove_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type remove_copy( Input const& input, Result const& result, T const& value diff --git a/sprout/range/algorithm/fixed/remove_copy_if.hpp b/sprout/range/algorithm/fixed/remove_copy_if.hpp index efc5fef0..8bc92958 100644 --- a/sprout/range/algorithm/fixed/remove_copy_if.hpp +++ b/sprout/range/algorithm/fixed/remove_copy_if.hpp @@ -14,7 +14,7 @@ namespace sprout { // remove_copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type remove_copy_if( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type remove_copy_if( Input const& input, Result const& result, Predicate pred diff --git a/sprout/range/algorithm/fixed/replace_copy.hpp b/sprout/range/algorithm/fixed/replace_copy.hpp index 28f99c2c..91cecf3d 100644 --- a/sprout/range/algorithm/fixed/replace_copy.hpp +++ b/sprout/range/algorithm/fixed/replace_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // replace_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy( Input const& input, Result const& result, T const& old_value, diff --git a/sprout/range/algorithm/fixed/replace_copy_if.hpp b/sprout/range/algorithm/fixed/replace_copy_if.hpp index 739f1820..c4b61ab8 100644 --- a/sprout/range/algorithm/fixed/replace_copy_if.hpp +++ b/sprout/range/algorithm/fixed/replace_copy_if.hpp @@ -14,7 +14,7 @@ namespace sprout { // replace_copy_if // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type replace_copy_if( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy_if( Input const& input, Result const& result, Predicate pred, diff --git a/sprout/range/algorithm/fixed/reverse_copy.hpp b/sprout/range/algorithm/fixed/reverse_copy.hpp index f7f0b439..68db56a4 100644 --- a/sprout/range/algorithm/fixed/reverse_copy.hpp +++ b/sprout/range/algorithm/fixed/reverse_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // reverse_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type reverse_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type reverse_copy( Input const& input, Result const& result ) diff --git a/sprout/range/algorithm/fixed/rotate_copy.hpp b/sprout/range/algorithm/fixed/rotate_copy.hpp index 10cad8b3..d292d71b 100644 --- a/sprout/range/algorithm/fixed/rotate_copy.hpp +++ b/sprout/range/algorithm/fixed/rotate_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // rotate_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type rotate_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type rotate_copy( Input const& input, typename sprout::container_traits::const_iterator middle, Result const& result diff --git a/sprout/range/algorithm/fixed/set_difference.hpp b/sprout/range/algorithm/fixed/set_difference.hpp index 87990429..f74fb469 100644 --- a/sprout/range/algorithm/fixed/set_difference.hpp +++ b/sprout/range/algorithm/fixed/set_difference.hpp @@ -14,7 +14,7 @@ namespace sprout { // set_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_difference( Input1 const& input1, Input2 const& input2, Result const& result, @@ -28,7 +28,7 @@ namespace sprout { // set_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_difference( Input1 const& input1, Input2 const& input2, Result const& result diff --git a/sprout/range/algorithm/fixed/set_intersection.hpp b/sprout/range/algorithm/fixed/set_intersection.hpp index 612e0d34..856fd3d8 100644 --- a/sprout/range/algorithm/fixed/set_intersection.hpp +++ b/sprout/range/algorithm/fixed/set_intersection.hpp @@ -14,7 +14,7 @@ namespace sprout { // set_intersection // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_intersection( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_intersection( Input1 const& input1, Input2 const& input2, Result const& result, @@ -28,7 +28,7 @@ namespace sprout { // set_intersection // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_intersection( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_intersection( Input1 const& input1, Input2 const& input2, Result const& result diff --git a/sprout/range/algorithm/fixed/set_symmetric_difference.hpp b/sprout/range/algorithm/fixed/set_symmetric_difference.hpp index 7cb77e1a..47bcb284 100644 --- a/sprout/range/algorithm/fixed/set_symmetric_difference.hpp +++ b/sprout/range/algorithm/fixed/set_symmetric_difference.hpp @@ -14,7 +14,7 @@ namespace sprout { // set_symmetric_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( Input1 const& input1, Input2 const& input2, Result const& result, @@ -28,7 +28,7 @@ namespace sprout { // set_symmetric_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_symmetric_difference( Input1 const& input1, Input2 const& input2, Result const& result diff --git a/sprout/range/algorithm/fixed/set_union.hpp b/sprout/range/algorithm/fixed/set_union.hpp index 9c6fdf86..283015d0 100644 --- a/sprout/range/algorithm/fixed/set_union.hpp +++ b/sprout/range/algorithm/fixed/set_union.hpp @@ -14,7 +14,7 @@ namespace sprout { // set_union // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_union( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_union( Input1 const& input1, Input2 const& input2, Result const& result, @@ -28,7 +28,7 @@ namespace sprout { // set_union // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type set_union( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type set_union( Input1 const& input1, Input2 const& input2, Result const& result diff --git a/sprout/range/algorithm/fixed/stable_partition_copy.hpp b/sprout/range/algorithm/fixed/stable_partition_copy.hpp index ae7282b2..698172e1 100644 --- a/sprout/range/algorithm/fixed/stable_partition_copy.hpp +++ b/sprout/range/algorithm/fixed/stable_partition_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // stable_partition_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type stable_partition_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type stable_partition_copy( Input const& input, Result const& result, Predicate pred diff --git a/sprout/range/algorithm/fixed/swap_element_copy.hpp b/sprout/range/algorithm/fixed/swap_element_copy.hpp index 272c367d..f9d7d3be 100644 --- a/sprout/range/algorithm/fixed/swap_element_copy.hpp +++ b/sprout/range/algorithm/fixed/swap_element_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // swap_element_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type swap_element_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type swap_element_copy( Input const& input, Result const& result, typename sprout::container_traits::const_iterator pos1, diff --git a/sprout/range/algorithm/fixed/transform.hpp b/sprout/range/algorithm/fixed/transform.hpp index 545470a4..efecdaf7 100644 --- a/sprout/range/algorithm/fixed/transform.hpp +++ b/sprout/range/algorithm/fixed/transform.hpp @@ -14,7 +14,7 @@ namespace sprout { // transform // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform( Input const& input, Result const& result, UnaryOperation op @@ -27,7 +27,7 @@ namespace sprout { // transform // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type transform( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform( Input1 const& input1, Input2 const& input2, Result const& result, diff --git a/sprout/range/algorithm/fixed/unique_copy.hpp b/sprout/range/algorithm/fixed/unique_copy.hpp index cb381b67..581e1928 100644 --- a/sprout/range/algorithm/fixed/unique_copy.hpp +++ b/sprout/range/algorithm/fixed/unique_copy.hpp @@ -14,7 +14,7 @@ namespace sprout { // unique_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type unique_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type unique_copy( Input const& input, Result const& result ) @@ -26,7 +26,7 @@ namespace sprout { // unique_copy // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type unique_copy( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type unique_copy( Input const& input, Result const& result, BinaryPredicate pred diff --git a/sprout/range/algorithm/includes.hpp b/sprout/range/algorithm/includes.hpp index 72476945..e2c2bd4c 100644 --- a/sprout/range/algorithm/includes.hpp +++ b/sprout/range/algorithm/includes.hpp @@ -11,12 +11,12 @@ namespace sprout { // 25.4.5.1 includes template - SPROUT_CONSTEXPR bool includes(Range1 const& range1, Range2 const& range2) { + inline SPROUT_CONSTEXPR bool includes(Range1 const& range1, Range2 const& range2) { return sprout::includes(sprout::begin(range1), sprout::end(range1), sprout::begin(range2), sprout::end(range2)); } template - SPROUT_CONSTEXPR bool includes(Range1 const& range1, Range2 const& range2, Compare comp) { + inline SPROUT_CONSTEXPR bool includes(Range1 const& range1, Range2 const& range2, Compare comp) { return sprout::includes(sprout::begin(range1), sprout::end(range1), sprout::begin(range2), sprout::end(range2), comp); } } // namespace range diff --git a/sprout/range/algorithm/is_heap.hpp b/sprout/range/algorithm/is_heap.hpp index 8da386fc..6b992f70 100644 --- a/sprout/range/algorithm/is_heap.hpp +++ b/sprout/range/algorithm/is_heap.hpp @@ -11,12 +11,12 @@ namespace sprout { // 25.4.6.5 is_heap template - SPROUT_CONSTEXPR bool is_heap(Range const& range) { + inline SPROUT_CONSTEXPR bool is_heap(Range const& range) { return sprout::is_heap(sprout::begin(range), sprout::end(range)); } template - SPROUT_CONSTEXPR bool is_heap(Range const& range, Compare comp) { + inline SPROUT_CONSTEXPR bool is_heap(Range const& range, Compare comp) { return sprout::is_heap(sprout::begin(range), sprout::end(range), comp); } } // namespace range diff --git a/sprout/range/algorithm/is_heap_until.hpp b/sprout/range/algorithm/is_heap_until.hpp index 369d1fb8..4f1e19b9 100644 --- a/sprout/range/algorithm/is_heap_until.hpp +++ b/sprout/range/algorithm/is_heap_until.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.4.6.5 is_heap template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type is_heap_until(Range&& range) { return sprout::range::range_return::pack( sprout::is_heap_until( @@ -25,7 +25,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type is_heap_until(Range&& range, Compare comp) { return sprout::range::range_return::pack( sprout::is_heap_until( @@ -38,7 +38,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type is_heap_until(Range&& range) { return sprout::range::range_return::pack( sprout::is_heap_until( @@ -50,7 +50,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type is_heap_until(Range&& range, Compare comp) { return sprout::range::range_return::pack( sprout::is_heap_until( diff --git a/sprout/range/algorithm/is_partitioned.hpp b/sprout/range/algorithm/is_partitioned.hpp index 9c870267..fcd34a20 100644 --- a/sprout/range/algorithm/is_partitioned.hpp +++ b/sprout/range/algorithm/is_partitioned.hpp @@ -11,7 +11,7 @@ namespace sprout { // 25.3.13 partitions template - SPROUT_CONSTEXPR bool is_partitioned(Range const& range, Predicate pred) { + inline SPROUT_CONSTEXPR bool is_partitioned(Range const& range, Predicate pred) { return sprout::is_partitioned(sprout::begin(range), sprout::end(range), pred); } } // namespace range diff --git a/sprout/range/algorithm/is_permutation.hpp b/sprout/range/algorithm/is_permutation.hpp index eb87d31f..7ce9565b 100644 --- a/sprout/range/algorithm/is_permutation.hpp +++ b/sprout/range/algorithm/is_permutation.hpp @@ -11,12 +11,12 @@ namespace sprout { // 25.2.12 Is permutation template - SPROUT_CONSTEXPR bool is_permutation(Range1 const& range1, Range2 const& range2) { + inline SPROUT_CONSTEXPR bool is_permutation(Range1 const& range1, Range2 const& range2) { return sprout::is_permutation(sprout::begin(range1), sprout::end(range1), sprout::begin(range2)); } template - SPROUT_CONSTEXPR bool is_permutation(Range1 const& range1, Range2 const& range2, BinaryPredicate pred) { + inline SPROUT_CONSTEXPR bool is_permutation(Range1 const& range1, Range2 const& range2, BinaryPredicate pred) { return sprout::is_permutation(sprout::begin(range1), sprout::end(range1), sprout::begin(range2), pred); } } // namespace range diff --git a/sprout/range/algorithm/is_sorted.hpp b/sprout/range/algorithm/is_sorted.hpp index 2f12cb55..0cc6f4ba 100644 --- a/sprout/range/algorithm/is_sorted.hpp +++ b/sprout/range/algorithm/is_sorted.hpp @@ -11,12 +11,12 @@ namespace sprout { // 25.4.1.5 is_sorted template - SPROUT_CONSTEXPR bool is_sorted(Range const& range) { + inline SPROUT_CONSTEXPR bool is_sorted(Range const& range) { return sprout::is_sorted(sprout::begin(range), sprout::end(range)); } template - SPROUT_CONSTEXPR bool is_sorted(Range const& range, Compare comp) { + inline SPROUT_CONSTEXPR bool is_sorted(Range const& range, Compare comp) { return sprout::is_sorted(sprout::begin(range), sprout::end(range), comp); } } // namespace range diff --git a/sprout/range/algorithm/is_sorted_until.hpp b/sprout/range/algorithm/is_sorted_until.hpp index 0833f795..1ab86fa5 100644 --- a/sprout/range/algorithm/is_sorted_until.hpp +++ b/sprout/range/algorithm/is_sorted_until.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.4.1.5 is_sorted template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type is_sorted_until(Range&& range) { return sprout::range::range_return::pack( sprout::is_sorted_until( @@ -25,7 +25,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type is_sorted_until(Range&& range, Compare comp) { return sprout::range::range_return::pack( sprout::is_sorted_until( @@ -38,7 +38,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type is_sorted_until(Range&& range) { return sprout::range::range_return::pack( sprout::is_sorted_until( @@ -50,7 +50,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type is_sorted_until(Range&& range, Compare comp) { return sprout::range::range_return::pack( sprout::is_sorted_until( diff --git a/sprout/range/algorithm/lexicographical_compare.hpp b/sprout/range/algorithm/lexicographical_compare.hpp index 845bea92..f05afa43 100644 --- a/sprout/range/algorithm/lexicographical_compare.hpp +++ b/sprout/range/algorithm/lexicographical_compare.hpp @@ -11,12 +11,12 @@ namespace sprout { // 25.4.8 Lexicographical comparison template - SPROUT_CONSTEXPR bool lexicographical_compare(Range1 const& range1, Range2 const& range2) { + inline SPROUT_CONSTEXPR bool lexicographical_compare(Range1 const& range1, Range2 const& range2) { return sprout::lexicographical_compare(sprout::begin(range1), sprout::end(range1), sprout::begin(range2), sprout::end(range2)); } template - SPROUT_CONSTEXPR bool lexicographical_compare(Range1 const& range1, Range2 const& range2, Compare comp) { + inline SPROUT_CONSTEXPR bool lexicographical_compare(Range1 const& range1, Range2 const& range2, Compare comp) { return sprout::lexicographical_compare(sprout::begin(range1), sprout::end(range1), sprout::begin(range2), sprout::end(range2), comp); } } // namespace range diff --git a/sprout/range/algorithm/lower_bound.hpp b/sprout/range/algorithm/lower_bound.hpp index 70cbf5bf..f553d9e7 100644 --- a/sprout/range/algorithm/lower_bound.hpp +++ b/sprout/range/algorithm/lower_bound.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.4.3.1 lower_bound template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type lower_bound(Range&& range, T const& value) { return sprout::range::range_return::pack( sprout::lower_bound( @@ -26,7 +26,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type lower_bound(Range&& range, T const& value, Compare comp) { return sprout::range::range_return::pack( sprout::lower_bound( @@ -40,7 +40,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type lower_bound(Range&& range, T const& value) { return sprout::range::range_return::pack( sprout::lower_bound( @@ -53,7 +53,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type lower_bound(Range&& range, T const& value, Compare comp) { return sprout::range::range_return::pack( sprout::lower_bound( diff --git a/sprout/range/algorithm/max_element.hpp b/sprout/range/algorithm/max_element.hpp index 93479653..06e21275 100644 --- a/sprout/range/algorithm/max_element.hpp +++ b/sprout/range/algorithm/max_element.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.4.7 Minimum and maximum template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type max_element(Range&& range) { return sprout::range::range_return::pack( sprout::max_element( @@ -25,7 +25,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type max_element(Range&& range, Compare comp) { return sprout::range::range_return::pack( sprout::max_element( @@ -38,7 +38,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type max_element(Range&& range) { return sprout::range::range_return::pack( sprout::max_element( @@ -50,7 +50,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type max_element(Range&& range, Compare comp) { return sprout::range::range_return::pack( sprout::max_element( diff --git a/sprout/range/algorithm/min_element.hpp b/sprout/range/algorithm/min_element.hpp index d9c257de..caff9398 100644 --- a/sprout/range/algorithm/min_element.hpp +++ b/sprout/range/algorithm/min_element.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.4.7 Minimum and maximum template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type min_element(Range&& range) { return sprout::range::range_return::pack( sprout::min_element( @@ -25,7 +25,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type min_element(Range&& range, Compare comp) { return sprout::range::range_return::pack( sprout::min_element( @@ -38,7 +38,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type min_element(Range&& range) { return sprout::range::range_return::pack( sprout::min_element( @@ -50,7 +50,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type min_element(Range&& range, Compare comp) { return sprout::range::range_return::pack( sprout::min_element( diff --git a/sprout/range/algorithm/minmax_element.hpp b/sprout/range/algorithm/minmax_element.hpp index 206be72c..f8123876 100644 --- a/sprout/range/algorithm/minmax_element.hpp +++ b/sprout/range/algorithm/minmax_element.hpp @@ -12,7 +12,7 @@ namespace sprout { namespace range { namespace detail { template - SPROUT_CONSTEXPR sprout::pair< + inline SPROUT_CONSTEXPR sprout::pair< typename sprout::range::range_return::type, typename sprout::range::range_return::type > @@ -24,7 +24,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR sprout::pair< + inline SPROUT_CONSTEXPR sprout::pair< typename sprout::range::range_return::type, typename sprout::range::range_return::type > @@ -40,7 +40,7 @@ namespace sprout { // 25.4.7 Minimum and maximum template - SPROUT_CONSTEXPR sprout::pair< + inline SPROUT_CONSTEXPR sprout::pair< typename sprout::range::range_return::type, typename sprout::range::range_return::type > @@ -55,7 +55,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR sprout::pair< + inline SPROUT_CONSTEXPR sprout::pair< typename sprout::range::range_return::type, typename sprout::range::range_return::type > @@ -71,7 +71,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR sprout::pair< + inline SPROUT_CONSTEXPR sprout::pair< typename sprout::range::range_return::type, typename sprout::range::range_return::type > @@ -86,7 +86,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR sprout::pair< + inline SPROUT_CONSTEXPR sprout::pair< typename sprout::range::range_return::type, typename sprout::range::range_return::type > diff --git a/sprout/range/algorithm/mismatch.hpp b/sprout/range/algorithm/mismatch.hpp index 96b9dc13..9dae09dd 100644 --- a/sprout/range/algorithm/mismatch.hpp +++ b/sprout/range/algorithm/mismatch.hpp @@ -14,7 +14,7 @@ namespace sprout { // 25.2.10 Mismatch template - SPROUT_CONSTEXPR sprout::pair< + inline SPROUT_CONSTEXPR sprout::pair< typename sprout::range::lvref_iterator::type, typename sprout::range::lvref_iterator::type > @@ -27,7 +27,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR sprout::pair< + inline SPROUT_CONSTEXPR sprout::pair< typename sprout::range::lvref_iterator::type, typename sprout::range::lvref_iterator::type > diff --git a/sprout/range/algorithm/none_of.hpp b/sprout/range/algorithm/none_of.hpp index f06831bb..dd54711a 100644 --- a/sprout/range/algorithm/none_of.hpp +++ b/sprout/range/algorithm/none_of.hpp @@ -11,7 +11,7 @@ namespace sprout { // 25.2.3 None of template - SPROUT_CONSTEXPR bool none_of(Range const& range, Predicate pred) { + inline SPROUT_CONSTEXPR bool none_of(Range const& range, Predicate pred) { return sprout::none_of(sprout::begin(range), sprout::end(range), pred); } } // namespace range diff --git a/sprout/range/algorithm/partition_point.hpp b/sprout/range/algorithm/partition_point.hpp index ce7b86ee..71dafbb7 100644 --- a/sprout/range/algorithm/partition_point.hpp +++ b/sprout/range/algorithm/partition_point.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.3.13 partitions template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type partition_point(Range&& range, Predicate pred) { return sprout::range::range_return::pack( sprout::partition_point( diff --git a/sprout/range/algorithm/search.hpp b/sprout/range/algorithm/search.hpp index dab263d0..844a9ea9 100644 --- a/sprout/range/algorithm/search.hpp +++ b/sprout/range/algorithm/search.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.2.13 Search template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type search(Range1&& range1, Range2&& range2) { return sprout::range::range_return::pack( sprout::search( @@ -27,7 +27,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type search(Range1&& range1, Range2&& range2, BinaryPredicate pred) { return sprout::range::range_return::pack( sprout::search( @@ -42,7 +42,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type search(Range1&& range1, Range2&& range2) { return sprout::range::range_return::pack( sprout::search( @@ -56,7 +56,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type search(Range1&& range1, Range2&& range2, BinaryPredicate pred) { return sprout::range::range_return::pack( sprout::search( diff --git a/sprout/range/algorithm/search_n.hpp b/sprout/range/algorithm/search_n.hpp index a3975c4c..4245d3f1 100644 --- a/sprout/range/algorithm/search_n.hpp +++ b/sprout/range/algorithm/search_n.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.2.13 Search template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type search_n(Range&& range, Size count, T const& value) { return sprout::range::range_return::pack( sprout::search_n( @@ -27,7 +27,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type search_n(Range&& range, Size count, T const& value, BinaryPredicate pred) { return sprout::range::range_return::pack( sprout::search_n( @@ -42,7 +42,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type search_n(Range&& range, Size count, T const& value) { return sprout::range::range_return::pack( sprout::search_n( @@ -56,7 +56,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type search_n(Range&& range, Size count, T const& value, BinaryPredicate pred) { return sprout::range::range_return::pack( sprout::search_n( diff --git a/sprout/range/algorithm/upper_bound.hpp b/sprout/range/algorithm/upper_bound.hpp index 85e28cff..344e3a08 100644 --- a/sprout/range/algorithm/upper_bound.hpp +++ b/sprout/range/algorithm/upper_bound.hpp @@ -13,7 +13,7 @@ namespace sprout { // 25.4.3.2 upper_bound template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type upper_bound(Range&& range, T const& value) { return sprout::range::range_return::pack( sprout::upper_bound( @@ -26,7 +26,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type upper_bound(Range&& range, T const& value, Compare comp) { return sprout::range::range_return::pack( sprout::upper_bound( @@ -40,7 +40,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type upper_bound(Range&& range, T const& value) { return sprout::range::range_return::pack( sprout::upper_bound( @@ -53,7 +53,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR typename sprout::range::range_return::type + inline SPROUT_CONSTEXPR typename sprout::range::range_return::type upper_bound(Range&& range, T const& value, Compare comp) { return sprout::range::range_return::pack( sprout::upper_bound( diff --git a/sprout/range/numeric/accumulate.hpp b/sprout/range/numeric/accumulate.hpp index 2b0b21a5..e102a287 100644 --- a/sprout/range/numeric/accumulate.hpp +++ b/sprout/range/numeric/accumulate.hpp @@ -7,12 +7,12 @@ namespace sprout { // 26.7.2 Accumulate template - SPROUT_CONSTEXPR T accumulate(Range const& range, T init, BinaryOperation binary_op) { + inline SPROUT_CONSTEXPR T accumulate(Range const& range, T init, BinaryOperation binary_op) { return sprout::accumulate(sprout::begin(range), sprout::end(range), init, binary_op); } template - SPROUT_CONSTEXPR T accumulate(Range const& range, T init) { + inline SPROUT_CONSTEXPR T accumulate(Range const& range, T init) { return sprout::accumulate(sprout::begin(range), sprout::end(range), init); } } // namespace sprout diff --git a/sprout/range/numeric/fit/adjacent_difference.hpp b/sprout/range/numeric/fit/adjacent_difference.hpp index 67fefe40..3ee03292 100644 --- a/sprout/range/numeric/fit/adjacent_difference.hpp +++ b/sprout/range/numeric/fit/adjacent_difference.hpp @@ -14,7 +14,7 @@ namespace sprout { // adjacent_difference // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type adjacent_difference( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type adjacent_difference( Input const& input, Result const& result ) @@ -25,7 +25,7 @@ namespace sprout { // adjacent_difference // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type adjacent_difference( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type adjacent_difference( Input const& input, Result const& result, BinaryOperation binary_op diff --git a/sprout/range/numeric/fit/partial_sum.hpp b/sprout/range/numeric/fit/partial_sum.hpp index 05d8e42a..31772b3b 100644 --- a/sprout/range/numeric/fit/partial_sum.hpp +++ b/sprout/range/numeric/fit/partial_sum.hpp @@ -14,7 +14,7 @@ namespace sprout { // partial_sum // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partial_sum( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partial_sum( Input const& input, Result const& result ) @@ -25,7 +25,7 @@ namespace sprout { // partial_sum // template - SPROUT_CONSTEXPR inline typename sprout::fit::result_of::algorithm::type partial_sum( + inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm::type partial_sum( Input const& input, Result const& result, BinaryOperation binary_op diff --git a/sprout/range/numeric/fixed/adjacent_difference.hpp b/sprout/range/numeric/fixed/adjacent_difference.hpp index 008ef4d9..935044bf 100644 --- a/sprout/range/numeric/fixed/adjacent_difference.hpp +++ b/sprout/range/numeric/fixed/adjacent_difference.hpp @@ -14,7 +14,7 @@ namespace sprout { // adjacent_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type adjacent_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type adjacent_difference( Input const& input, Result const& result ) @@ -25,7 +25,7 @@ namespace sprout { // adjacent_difference // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type adjacent_difference( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type adjacent_difference( Input const& input, Result const& result, BinaryOperation binary_op diff --git a/sprout/range/numeric/fixed/partial_sum.hpp b/sprout/range/numeric/fixed/partial_sum.hpp index 2a9c144c..fa8349c9 100644 --- a/sprout/range/numeric/fixed/partial_sum.hpp +++ b/sprout/range/numeric/fixed/partial_sum.hpp @@ -14,7 +14,7 @@ namespace sprout { // partial_sum // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type partial_sum( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type partial_sum( Input const& input, Result const& result ) @@ -25,7 +25,7 @@ namespace sprout { // partial_sum // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::algorithm::type partial_sum( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type partial_sum( Input const& input, Result const& result, BinaryOperation binary_op diff --git a/sprout/range/numeric/inner_product.hpp b/sprout/range/numeric/inner_product.hpp index 59c3ece5..c0d2da5e 100644 --- a/sprout/range/numeric/inner_product.hpp +++ b/sprout/range/numeric/inner_product.hpp @@ -7,7 +7,7 @@ namespace sprout { // 26.7.3 Inner product template - SPROUT_CONSTEXPR T inner_product( + inline SPROUT_CONSTEXPR T inner_product( Range1 const& range1, Range2 const& range2, T init, @@ -19,7 +19,7 @@ namespace sprout { } template - SPROUT_CONSTEXPR T inner_product( + inline SPROUT_CONSTEXPR T inner_product( Range1 const& range1, Range2 const& range2, T init diff --git a/sprout/string.hpp b/sprout/string.hpp index 449ae56c..689be68a 100644 --- a/sprout/string.hpp +++ b/sprout/string.hpp @@ -597,75 +597,75 @@ namespace sprout { // operator>= // template - SPROUT_CONSTEXPR inline bool operator==(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator==(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { return lhs.compare(rhs) == 0; } template - SPROUT_CONSTEXPR inline bool operator==(sprout::basic_string const& lhs, T const* rhs) { + inline SPROUT_CONSTEXPR bool operator==(sprout::basic_string const& lhs, T const* rhs) { return lhs.compare(rhs) == 0; } template - SPROUT_CONSTEXPR inline bool operator==(T const* lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator==(T const* lhs, sprout::basic_string const& rhs) { return 0 == rhs.compare(lhs); } template - SPROUT_CONSTEXPR inline bool operator!=(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator!=(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { return !(lhs == rhs); } template - SPROUT_CONSTEXPR inline bool operator!=(sprout::basic_string const& lhs, T const* rhs) { + inline SPROUT_CONSTEXPR bool operator!=(sprout::basic_string const& lhs, T const* rhs) { return !(lhs == rhs); } template - SPROUT_CONSTEXPR inline bool operator!=(T const* lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator!=(T const* lhs, sprout::basic_string const& rhs) { return !(lhs == rhs); } template - SPROUT_CONSTEXPR inline bool operator<(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator<(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { return lhs.compare(rhs) < 0; } template - SPROUT_CONSTEXPR inline bool operator<(sprout::basic_string const& lhs, T const* rhs) { + inline SPROUT_CONSTEXPR bool operator<(sprout::basic_string const& lhs, T const* rhs) { return lhs.compare(rhs) < 0; } template - SPROUT_CONSTEXPR inline bool operator<(T const* lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator<(T const* lhs, sprout::basic_string const& rhs) { return 0 < rhs.compare(lhs); } template - SPROUT_CONSTEXPR inline bool operator>(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator>(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { return rhs < lhs; } template - SPROUT_CONSTEXPR inline bool operator>(sprout::basic_string const& lhs, T const* rhs) { + inline SPROUT_CONSTEXPR bool operator>(sprout::basic_string const& lhs, T const* rhs) { return rhs < lhs; } template - SPROUT_CONSTEXPR inline bool operator>(T const* lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator>(T const* lhs, sprout::basic_string const& rhs) { return rhs < lhs; } template - SPROUT_CONSTEXPR inline bool operator<=(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator<=(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { return !(rhs < lhs); } template - SPROUT_CONSTEXPR inline bool operator<=(sprout::basic_string const& lhs, T const* rhs) { + inline SPROUT_CONSTEXPR bool operator<=(sprout::basic_string const& lhs, T const* rhs) { return !(rhs < lhs); } template - SPROUT_CONSTEXPR inline bool operator<=(T const* lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator<=(T const* lhs, sprout::basic_string const& rhs) { return !(rhs < lhs); } template - SPROUT_CONSTEXPR inline bool operator>=(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator>=(sprout::basic_string const& lhs, sprout::basic_string const& rhs) { return !(lhs < rhs); } template - SPROUT_CONSTEXPR inline bool operator>=(sprout::basic_string const& lhs, T const* rhs) { + inline SPROUT_CONSTEXPR bool operator>=(sprout::basic_string const& lhs, T const* rhs) { return !(lhs < rhs); } template - SPROUT_CONSTEXPR inline bool operator>=(T const* lhs, sprout::basic_string const& rhs) { + inline SPROUT_CONSTEXPR bool operator>=(T const* lhs, sprout::basic_string const& rhs) { return !(lhs < rhs); } @@ -824,7 +824,7 @@ namespace sprout { // namespace detail { template - SPROUT_CONSTEXPR inline sprout::basic_string to_string_impl_1( + inline SPROUT_CONSTEXPR sprout::basic_string to_string_impl_1( T const(& arr)[N], typename sprout::basic_string::size_type n, sprout::index_tuple @@ -833,7 +833,7 @@ namespace sprout { return sprout::basic_string{{(Indexes < n ? arr[Indexes] : T())...}, n}; } template - SPROUT_CONSTEXPR inline sprout::basic_string to_string_impl( + inline SPROUT_CONSTEXPR sprout::basic_string to_string_impl( T const(& arr)[N], sprout::index_tuple ) @@ -842,7 +842,7 @@ namespace sprout { } } // namespace detail template - SPROUT_CONSTEXPR inline sprout::basic_string to_string(T const(& arr)[N]) { + inline SPROUT_CONSTEXPR sprout::basic_string to_string(T const(& arr)[N]) { return sprout::detail::to_string_impl(arr, typename sprout::index_range<0, N - 1>::type()); } @@ -850,11 +850,11 @@ namespace sprout { // string_from_c_str // template - SPROUT_CONSTEXPR inline sprout::basic_string string_from_c_str(T const* s, std::size_t n) { + inline SPROUT_CONSTEXPR sprout::basic_string string_from_c_str(T const* s, std::size_t n) { return sprout::basic_string::from_c_str(s, n); } template - SPROUT_CONSTEXPR inline sprout::basic_string string_from_c_str(T const* s) { + inline SPROUT_CONSTEXPR sprout::basic_string string_from_c_str(T const* s) { return sprout::basic_string::from_c_str(s); } @@ -863,7 +863,7 @@ namespace sprout { // namespace detail { template - SPROUT_CONSTEXPR inline sprout::basic_string make_string_impl_1( + inline SPROUT_CONSTEXPR sprout::basic_string make_string_impl_1( sprout::array const& arr, std::size_t n, sprout::index_tuple @@ -872,7 +872,7 @@ namespace sprout { return sprout::basic_string{{(Indexes < n ? arr[Indexes] : T())...}, n}; } template - SPROUT_CONSTEXPR inline sprout::basic_string make_string_impl( + inline SPROUT_CONSTEXPR sprout::basic_string make_string_impl( sprout::array const& arr, sprout::index_tuple ) @@ -885,7 +885,7 @@ namespace sprout { } } // namespace detail template - SPROUT_CONSTEXPR inline sprout::basic_string::type, 1 + sizeof...(Types)> + inline SPROUT_CONSTEXPR sprout::basic_string::type, 1 + sizeof...(Types)> make_string(T&& t, Types&&... args) { return sprout::detail::make_string_impl( sprout::make_array::type>( @@ -901,12 +901,12 @@ namespace sprout { // make_string_as // template - SPROUT_CONSTEXPR inline sprout::basic_string::type, 0> + inline SPROUT_CONSTEXPR sprout::basic_string::type, 0> make_string_as() { return sprout::basic_string::type, 0>{}; } template - SPROUT_CONSTEXPR inline sprout::basic_string::type, sizeof...(Types)> + inline SPROUT_CONSTEXPR sprout::basic_string::type, sizeof...(Types)> make_string_as(Types&&... args) { return sprout::detail::make_string_impl( sprout::make_array::type>( @@ -921,7 +921,7 @@ namespace sprout { // operator+ // template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::push_back, T>::type operator+( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::push_back, T>::type operator+( sprout::basic_string const& lhs, T const& rhs ) @@ -929,7 +929,7 @@ namespace sprout { return sprout::fixed::push_back(lhs, rhs); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::push_front, T>::type operator+( + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::push_front, T>::type operator+( T const& lhs, sprout::basic_string const& rhs ) @@ -937,7 +937,7 @@ namespace sprout { return sprout::fixed::push_front(rhs, lhs); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::append_back< + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::append_back< sprout::basic_string, sprout::basic_string >::type operator+( @@ -948,7 +948,7 @@ namespace sprout { return sprout::fixed::append_back(lhs, sprout::to_string(rhs)); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::append_front< + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::append_front< sprout::basic_string, sprout::basic_string >::type operator+( @@ -959,7 +959,7 @@ namespace sprout { return sprout::fixed::append_front(rhs, sprout::to_string(lhs)); } template - SPROUT_CONSTEXPR inline typename sprout::fixed::result_of::append_back< + inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::append_back< sprout::basic_string, sprout::basic_string >::type operator+( diff --git a/sprout/sub_array.hpp b/sprout/sub_array.hpp index 19f92d4f..52568690 100644 --- a/sprout/sub_array.hpp +++ b/sprout/sub_array.hpp @@ -387,27 +387,27 @@ namespace sprout { // operator>= // template - SPROUT_CONSTEXPR inline bool operator==(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { + inline SPROUT_CONSTEXPR bool operator==(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { return NS_SSCRISK_CEL_OR_SPROUT::equal(sprout::begin(lhs), sprout::end(lhs), sprout::begin(rhs)); } template - SPROUT_CONSTEXPR inline bool operator!=(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { + inline SPROUT_CONSTEXPR bool operator!=(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { return !(lhs == rhs); } template - SPROUT_CONSTEXPR inline bool operator<(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { + inline SPROUT_CONSTEXPR bool operator<(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { return NS_SSCRISK_CEL_OR_SPROUT::lexicographical_compare(sprout::begin(lhs), sprout::end(lhs), sprout::begin(rhs), sprout::end(rhs)); } template - SPROUT_CONSTEXPR inline bool operator>(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { + inline SPROUT_CONSTEXPR bool operator>(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { return rhs < lhs; } template - SPROUT_CONSTEXPR inline bool operator<=(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { + inline SPROUT_CONSTEXPR bool operator<=(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { return !(rhs < lhs); } template - SPROUT_CONSTEXPR inline bool operator>=(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { + inline SPROUT_CONSTEXPR bool operator>=(sprout::sub_array const& lhs, sprout::sub_array const& rhs) { return !(lhs < rhs); } @@ -550,7 +550,7 @@ namespace sprout { // sub // template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub( Container& arr, typename sprout::container_traits >::const_iterator first, typename sprout::container_traits >::const_iterator last @@ -559,7 +559,7 @@ namespace sprout { return sprout::sub_array(arr, first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub( Container& arr, typename sprout::container_traits >::difference_type first, typename sprout::container_traits >::difference_type last @@ -568,7 +568,7 @@ namespace sprout { return sprout::sub_array(arr, first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub( Container& arr, typename sprout::container_traits >::const_iterator first ) @@ -576,7 +576,7 @@ namespace sprout { return sprout::sub(arr, first, sprout::end(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub( Container& arr, typename sprout::container_traits >::difference_type first ) @@ -584,7 +584,7 @@ namespace sprout { return sprout::sub(arr, first, sprout::size(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub( Container& arr ) { @@ -594,7 +594,7 @@ namespace sprout { // sub // template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub( Container const& arr, typename sprout::container_traits >::const_iterator first, typename sprout::container_traits >::const_iterator last @@ -603,7 +603,7 @@ namespace sprout { return sprout::sub_array(arr, first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub( Container const& arr, typename sprout::container_traits >::difference_type first, typename sprout::container_traits >::difference_type last @@ -612,7 +612,7 @@ namespace sprout { return sprout::sub_array(arr, first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub( Container const& arr, typename sprout::container_traits >::const_iterator first ) @@ -620,7 +620,7 @@ namespace sprout { return sprout::sub(arr, first, sprout::end(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub( Container const& arr, typename sprout::container_traits >::difference_type first ) @@ -628,7 +628,7 @@ namespace sprout { return sprout::sub(arr, first, sprout::size(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub( Container const& arr ) { @@ -638,7 +638,7 @@ namespace sprout { // sub // template - SPROUT_CONSTEXPR inline typename std::enable_if::value, Container>::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, Container>::type sub( Container const& arr, typename sprout::container_traits::const_iterator first, typename sprout::container_traits::const_iterator last @@ -647,7 +647,7 @@ namespace sprout { return Container(arr, first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, Container>::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, Container>::type sub( Container const& arr, typename sprout::container_traits::difference_type first, typename sprout::container_traits::difference_type last @@ -656,7 +656,7 @@ namespace sprout { return Container(arr, first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, Container>::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, Container>::type sub( Container const& arr, typename sprout::container_traits::const_iterator first ) @@ -664,7 +664,7 @@ namespace sprout { return sprout::sub(arr, first, sprout::end(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, Container>::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, Container>::type sub( Container const& arr, typename sprout::container_traits::difference_type first ) @@ -672,7 +672,7 @@ namespace sprout { return sprout::sub(arr, first, sprout::size(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, Container>::type sub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, Container>::type sub( Container const& arr ) { @@ -683,7 +683,7 @@ namespace sprout { // csub // template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type csub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type csub( Container const& arr, typename sprout::container_traits >::const_iterator first, typename sprout::container_traits >::const_iterator last @@ -692,7 +692,7 @@ namespace sprout { return sprout::sub_array(arr, first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type csub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type csub( Container const& arr, typename sprout::container_traits >::difference_type first, typename sprout::container_traits >::difference_type last @@ -701,7 +701,7 @@ namespace sprout { return sprout::sub_array(arr, first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type csub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type csub( Container const& arr, typename sprout::container_traits >::const_iterator first ) @@ -709,7 +709,7 @@ namespace sprout { return sprout::csub(arr, first, sprout::end(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type csub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type csub( Container const& arr, typename sprout::container_traits >::difference_type first ) @@ -717,7 +717,7 @@ namespace sprout { return sprout::csub(arr, first, sprout::size(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type csub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type csub( Container const& arr ) { @@ -727,7 +727,7 @@ namespace sprout { // csub // template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type csub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type csub( Container const& arr, typename sprout::container_traits::const_iterator first, typename sprout::container_traits::const_iterator last @@ -736,7 +736,7 @@ namespace sprout { return sprout::sub_array(arr.get_array(), first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type csub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type csub( Container const& arr, typename sprout::container_traits::difference_type first, typename sprout::container_traits::difference_type last @@ -749,7 +749,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type csub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type csub( Container const& arr, typename sprout::container_traits::const_iterator first ) @@ -757,7 +757,7 @@ namespace sprout { return sprout::csub(arr, first, sprout::end(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type csub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type csub( Container const& arr, typename sprout::container_traits::difference_type first ) @@ -765,7 +765,7 @@ namespace sprout { return sprout::csub(arr, first, sprout::size(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type csub( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type csub( Container const& arr ) { @@ -776,7 +776,7 @@ namespace sprout { // sub_copy // template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub_copy( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub_copy( Container const& arr, typename sprout::container_traits::const_iterator first, typename sprout::container_traits::const_iterator last @@ -785,7 +785,7 @@ namespace sprout { return sprout::sub_array(arr, first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub_copy( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub_copy( Container const& arr, typename sprout::container_traits::difference_type first, typename sprout::container_traits::difference_type last @@ -794,7 +794,7 @@ namespace sprout { return sprout::sub_array(arr, first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub_copy( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub_copy( Container const& arr, typename sprout::container_traits::const_iterator first ) @@ -802,7 +802,7 @@ namespace sprout { return sprout::sub_copy(arr, first, sprout::end(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub_copy( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub_copy( Container const& arr, typename sprout::container_traits::difference_type first ) @@ -810,7 +810,7 @@ namespace sprout { return sprout::sub_copy(arr, first, sprout::size(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub_copy( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub_copy( Container const& arr ) { @@ -820,7 +820,7 @@ namespace sprout { // sub_copy // template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub_copy( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub_copy( Container const& arr, typename sprout::container_traits::const_iterator first, typename sprout::container_traits::const_iterator last @@ -829,7 +829,7 @@ namespace sprout { return sprout::sub_array(arr.get_array(), first, last); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub_copy( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub_copy( Container const& arr, typename sprout::container_traits::difference_type first, typename sprout::container_traits::difference_type last @@ -842,7 +842,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub_copy( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub_copy( Container const& arr, typename sprout::container_traits::const_iterator first ) @@ -850,7 +850,7 @@ namespace sprout { return sprout::sub_copy(arr, first, sprout::end(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub_copy( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub_copy( Container const& arr, typename sprout::container_traits::difference_type first ) @@ -858,7 +858,7 @@ namespace sprout { return sprout::sub_copy(arr, first, sprout::size(arr)); } template - SPROUT_CONSTEXPR inline typename std::enable_if::value, sprout::sub_array >::type sub_copy( + inline SPROUT_CONSTEXPR typename std::enable_if::value, sprout::sub_array >::type sub_copy( Container const& arr ) { diff --git a/sprout/tuple.hpp b/sprout/tuple.hpp index ca3016d4..8b675190 100644 --- a/sprout/tuple.hpp +++ b/sprout/tuple.hpp @@ -4,5 +4,7 @@ #include #include #include +#include +#include #endif // #ifndef SPROUT_TUPLE_HPP diff --git a/sprout/tuple/algorithm/copy.hpp b/sprout/tuple/algorithm/copy.hpp index f95ddc93..10b2ba4a 100644 --- a/sprout/tuple/algorithm/copy.hpp +++ b/sprout/tuple/algorithm/copy.hpp @@ -22,7 +22,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result copy_impl( + inline SPROUT_CONSTEXPR Result copy_impl( Tuple const& t, InputTuple const& input, sprout::index_tuple, @@ -36,7 +36,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< (sprout::tuples::tuple_size::value > sprout::tuples::tuple_size::value), typename sprout::tuples::result_of::copy::type >::type copy( @@ -52,7 +52,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< !(sprout::tuples::tuple_size::value > sprout::tuples::tuple_size::value), typename sprout::tuples::result_of::copy::type >::type copy( @@ -72,7 +72,7 @@ namespace sprout { // copy // template - SPROUT_CONSTEXPR inline typename sprout::tuples::result_of::copy::type copy( + inline SPROUT_CONSTEXPR typename sprout::tuples::result_of::copy::type copy( Tuple const& t, InputTuple const& input ) diff --git a/sprout/tuple/deep_copy.hpp b/sprout/tuple/deep_copy.hpp index a7b893de..5a56d1f6 100644 --- a/sprout/tuple/deep_copy.hpp +++ b/sprout/tuple/deep_copy.hpp @@ -12,7 +12,7 @@ namespace sprout { // deep_copy // template - SPROUT_CONSTEXPR inline typename sprout::tuples::tuple_construct_traits< + inline SPROUT_CONSTEXPR typename sprout::tuples::tuple_construct_traits< typename std::remove_reference::type >::copied_type deep_copy(Tuple&& tup) { typedef typename std::remove_reference::type tuple_type; diff --git a/sprout/tuple/functions.hpp b/sprout/tuple/functions.hpp index 677ae18d..c5df9159 100644 --- a/sprout/tuple/functions.hpp +++ b/sprout/tuple/functions.hpp @@ -1,6 +1,7 @@ #ifndef SPROUT_TUPLE_FUNCTIONS_HPP #define SPROUT_TUPLE_FUNCTIONS_HPP +#include #include #include #include diff --git a/sprout/tuple/indexes.hpp b/sprout/tuple/indexes.hpp new file mode 100644 index 00000000..6fcca841 --- /dev/null +++ b/sprout/tuple/indexes.hpp @@ -0,0 +1,30 @@ +#ifndef SPROUT_TUPLE_INDEXES_HPP +#define SPROUT_TUPLE_INDEXES_HPP + +#include +#include +#include + +namespace sprout { + namespace tuples { + // + // tuple_indexes + // + template + struct tuple_indexes + : public sprout::detail::make_index_tuple_helper< + sprout::index_range<0, sprout::tuples::tuple_size::value> + > + {}; + } // namespace tuples + + // + // tuple_indexes + // + template + struct tuple_indexes + : public sprout::tuples::tuple_indexes + {}; +} // namespace sprout + +#endif // #ifndef SPROUT_TUPLE_INDEXES_HPP diff --git a/sprout/tuple/make.hpp b/sprout/tuple/make.hpp index ff39db89..3af07433 100644 --- a/sprout/tuple/make.hpp +++ b/sprout/tuple/make.hpp @@ -12,7 +12,7 @@ namespace sprout { // make // template - SPROUT_CONSTEXPR inline typename sprout::tuples::tuple_construct_traits::copied_type make(Args&&... args) { + inline SPROUT_CONSTEXPR typename sprout::tuples::tuple_construct_traits::copied_type make(Args&&... args) { return sprout::tuples::tuple_construct_traits::make( sprout::forward(args)... ); diff --git a/sprout/tuple/metafunctions.hpp b/sprout/tuple/metafunctions.hpp new file mode 100644 index 00000000..c6141732 --- /dev/null +++ b/sprout/tuple/metafunctions.hpp @@ -0,0 +1,7 @@ +#ifndef SPROUT_TUPLE_METAFUNCTIONS_HPP +#define SPROUT_TUPLE_METAFUNCTIONS_HPP + +#include +#include + +#endif // #ifndef SPROUT_TUPLE_METAFUNCTIONS_HPP diff --git a/sprout/tuple/operation/append_back.hpp b/sprout/tuple/operation/append_back.hpp index b491dc1c..d5d447fc 100644 --- a/sprout/tuple/operation/append_back.hpp +++ b/sprout/tuple/operation/append_back.hpp @@ -21,7 +21,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result append_back_impl( + inline SPROUT_CONSTEXPR Result append_back_impl( Tuple const& t, InputTuple const& input, sprout::index_tuple, @@ -39,7 +39,7 @@ namespace sprout { // append_back // template - SPROUT_CONSTEXPR inline typename sprout::tuples::result_of::append_back::type append_back( + inline SPROUT_CONSTEXPR typename sprout::tuples::result_of::append_back::type append_back( Tuple const& t, InputTuple const& input ) diff --git a/sprout/tuple/operation/append_front.hpp b/sprout/tuple/operation/append_front.hpp index 3cef9b3b..f01db28c 100644 --- a/sprout/tuple/operation/append_front.hpp +++ b/sprout/tuple/operation/append_front.hpp @@ -21,7 +21,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result append_front_impl( + inline SPROUT_CONSTEXPR Result append_front_impl( Tuple const& t, InputTuple const& input, sprout::index_tuple, @@ -39,7 +39,7 @@ namespace sprout { // append_front // template - SPROUT_CONSTEXPR inline typename sprout::tuples::result_of::append_front::type append_front( + inline SPROUT_CONSTEXPR typename sprout::tuples::result_of::append_front::type append_front( Tuple const& t, InputTuple const& input ) diff --git a/sprout/tuple/operation/push_back.hpp b/sprout/tuple/operation/push_back.hpp index f7b2639d..86f546a7 100644 --- a/sprout/tuple/operation/push_back.hpp +++ b/sprout/tuple/operation/push_back.hpp @@ -21,7 +21,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result push_back_impl( + inline SPROUT_CONSTEXPR Result push_back_impl( Tuple const& t, T const& v, sprout::index_tuple @@ -38,7 +38,7 @@ namespace sprout { // push_back // template - SPROUT_CONSTEXPR inline typename sprout::tuples::result_of::push_back::type push_back( + inline SPROUT_CONSTEXPR typename sprout::tuples::result_of::push_back::type push_back( Tuple const& t, T const& v ) diff --git a/sprout/tuple/operation/push_front.hpp b/sprout/tuple/operation/push_front.hpp index c63b091b..be1e28c7 100644 --- a/sprout/tuple/operation/push_front.hpp +++ b/sprout/tuple/operation/push_front.hpp @@ -21,7 +21,7 @@ namespace sprout { namespace detail { template - SPROUT_CONSTEXPR inline Result push_front_impl( + inline SPROUT_CONSTEXPR Result push_front_impl( Tuple const& t, T const& v, sprout::index_tuple @@ -38,7 +38,7 @@ namespace sprout { // push_front // template - SPROUT_CONSTEXPR inline typename sprout::tuples::result_of::push_front::type push_front( + inline SPROUT_CONSTEXPR typename sprout::tuples::result_of::push_front::type push_front( Tuple const& t, T const& v ) diff --git a/sprout/tuple/remake.hpp b/sprout/tuple/remake.hpp index 573be17d..be51a570 100644 --- a/sprout/tuple/remake.hpp +++ b/sprout/tuple/remake.hpp @@ -12,7 +12,7 @@ namespace sprout { // remake // template - SPROUT_CONSTEXPR inline typename sprout::tuples::tuple_construct_traits::copied_type remake( + inline SPROUT_CONSTEXPR typename sprout::tuples::tuple_construct_traits::copied_type remake( Tup&& tup, Args&&... args ) diff --git a/sprout/tuple/tuple.hpp b/sprout/tuple/tuple.hpp index aa2452b5..eea55232 100644 --- a/sprout/tuple/tuple.hpp +++ b/sprout/tuple/tuple.hpp @@ -282,14 +282,14 @@ namespace sprout { // make_tuple // template - SPROUT_CONSTEXPR inline sprout::tuples::tuple::type...> make_tuple(Types&&... args) { + inline SPROUT_CONSTEXPR sprout::tuples::tuple::type...> make_tuple(Types&&... args) { return sprout::tuples::tuple::type...>(sprout::forward(args)...); } // // forward_as_tuple // template - SPROUT_CONSTEXPR inline sprout::tuples::tuple forward_as_tuple(Types&&... args) SPROUT_NOEXCEPT { + inline SPROUT_CONSTEXPR sprout::tuples::tuple forward_as_tuple(Types&&... args) SPROUT_NOEXCEPT { return sprout::tuples::tuple(sprout::forward(args)...); } // diff --git a/sprout/tuple/tuple_comparison.hpp b/sprout/tuple/tuple_comparison.hpp index 7d7d0e57..95047fdc 100644 --- a/sprout/tuple/tuple_comparison.hpp +++ b/sprout/tuple/tuple_comparison.hpp @@ -46,7 +46,7 @@ namespace sprout { }; } // namespace detail template - SPROUT_CONSTEXPR inline bool operator==( + inline SPROUT_CONSTEXPR bool operator==( sprout::tuples::tuple const& lhs, sprout::tuples::tuple const& rhs ) @@ -62,7 +62,7 @@ namespace sprout { >::eq(lhs, rhs); } template - SPROUT_CONSTEXPR inline bool operator<( + inline SPROUT_CONSTEXPR bool operator<( sprout::tuples::tuple const& lhs, sprout::tuples::tuple const& rhs ) @@ -78,7 +78,7 @@ namespace sprout { >::less(lhs, rhs); } template - SPROUT_CONSTEXPR inline bool operator!=( + inline SPROUT_CONSTEXPR bool operator!=( sprout::tuples::tuple const& lhs, sprout::tuples::tuple const& rhs ) @@ -86,7 +86,7 @@ namespace sprout { return !(lhs == rhs); } template - SPROUT_CONSTEXPR inline bool operator>( + inline SPROUT_CONSTEXPR bool operator>( sprout::tuples::tuple const& lhs, sprout::tuples::tuple const& rhs ) @@ -94,7 +94,7 @@ namespace sprout { return rhs < lhs; } template - SPROUT_CONSTEXPR inline bool operator<=( + inline SPROUT_CONSTEXPR bool operator<=( sprout::tuples::tuple const& lhs, sprout::tuples::tuple const& rhs ) @@ -102,7 +102,7 @@ namespace sprout { return !(rhs < lhs); } template - SPROUT_CONSTEXPR inline bool operator>=( + inline SPROUT_CONSTEXPR bool operator>=( sprout::tuples::tuple const& lhs, sprout::tuples::tuple const& rhs ) diff --git a/sprout/type/string/to_string_constant.hpp b/sprout/type/string/to_string_constant.hpp index e7d9e16c..228f0a47 100644 --- a/sprout/type/string/to_string_constant.hpp +++ b/sprout/type/string/to_string_constant.hpp @@ -38,7 +38,7 @@ namespace sprout { > {}; template - SPROUT_CONSTEXPR inline sprout::basic_string< + inline SPROUT_CONSTEXPR sprout::basic_string< typename Sequence::value_type, sprout::types::detail::str_length::value > to_string_constant_impl(sprout::index_tuple) { @@ -48,7 +48,7 @@ namespace sprout { } } // namespace detail template - SPROUT_CONSTEXPR inline sprout::basic_string< + inline SPROUT_CONSTEXPR sprout::basic_string< typename Sequence::value_type, sprout::types::detail::str_length::value > to_string_constant() { diff --git a/sprout/uuid/nil_generator.hpp b/sprout/uuid/nil_generator.hpp index 2318db87..f72352a9 100644 --- a/sprout/uuid/nil_generator.hpp +++ b/sprout/uuid/nil_generator.hpp @@ -20,7 +20,7 @@ namespace sprout { // // nil_uuid // - SPROUT_CONSTEXPR inline sprout::uuids::uuid nil_uuid() { + inline SPROUT_CONSTEXPR sprout::uuids::uuid nil_uuid() { return sprout::uuids::nil_generator()(); } } // namespace uuids diff --git a/sprout/uuid/uuid.hpp b/sprout/uuid/uuid.hpp index 3d0e3855..ed1e7c28 100644 --- a/sprout/uuid/uuid.hpp +++ b/sprout/uuid/uuid.hpp @@ -17,7 +17,7 @@ namespace sprout { namespace uuids { namespace detail { template - SPROUT_CONSTEXPR inline bool is_nil(InputIterator first, InputIterator last) { + inline SPROUT_CONSTEXPR bool is_nil(InputIterator first, InputIterator last) { return first == last ? true : !*first && sprout::uuids::detail::is_nil(sprout::next(first), last) ; @@ -229,22 +229,22 @@ namespace sprout { // operator<= // operator>= // - SPROUT_CONSTEXPR inline bool operator==(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { + inline SPROUT_CONSTEXPR bool operator==(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { return NS_SSCRISK_CEL_OR_SPROUT::equal(lhs.begin(), lhs.end(), rhs.begin()); } - SPROUT_CONSTEXPR inline bool operator!=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { + inline SPROUT_CONSTEXPR bool operator!=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { return !(lhs == rhs); } - SPROUT_CONSTEXPR inline bool operator<(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { + inline SPROUT_CONSTEXPR bool operator<(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { return NS_SSCRISK_CEL_OR_SPROUT::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end()); } - SPROUT_CONSTEXPR inline bool operator>(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { + inline SPROUT_CONSTEXPR bool operator>(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { return rhs < lhs; } - SPROUT_CONSTEXPR inline bool operator<=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { + inline SPROUT_CONSTEXPR bool operator<=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { return !(rhs < lhs); } - SPROUT_CONSTEXPR inline bool operator>=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { + inline SPROUT_CONSTEXPR bool operator>=(sprout::uuids::uuid const& lhs, sprout::uuids::uuid const& rhs) { return !(lhs < rhs); } diff --git a/sprout/uuid/uuid_io.hpp b/sprout/uuid/uuid_io.hpp index 13a543de..35fa446b 100644 --- a/sprout/uuid/uuid_io.hpp +++ b/sprout/uuid/uuid_io.hpp @@ -111,7 +111,7 @@ namespace sprout { // to_string_of // template > - SPROUT_CONSTEXPR inline sprout::basic_string to_string_of(sprout::uuids::uuid const& u) { + inline SPROUT_CONSTEXPR sprout::basic_string to_string_of(sprout::uuids::uuid const& u) { return sprout::basic_string{ { sprout::uuids::detail::digits::table[(u[0] >> 4) & 0x0F], @@ -157,25 +157,25 @@ namespace sprout { // // to_string // - SPROUT_CONSTEXPR inline sprout::basic_string to_string(sprout::uuids::uuid const& u) { + inline SPROUT_CONSTEXPR sprout::basic_string to_string(sprout::uuids::uuid const& u) { return sprout::uuids::to_string_of(u); } // // to_wstring // - SPROUT_CONSTEXPR inline sprout::basic_string to_wstring(sprout::uuids::uuid const& u) { + inline SPROUT_CONSTEXPR sprout::basic_string to_wstring(sprout::uuids::uuid const& u) { return sprout::uuids::to_string_of(u); } // // to_u16string // - SPROUT_CONSTEXPR inline sprout::basic_string to_u16string(sprout::uuids::uuid const& u) { + inline SPROUT_CONSTEXPR sprout::basic_string to_u16string(sprout::uuids::uuid const& u) { return sprout::uuids::to_string_of(u); } // // to_u32string // - SPROUT_CONSTEXPR inline sprout::basic_string to_u32string(sprout::uuids::uuid const& u) { + inline SPROUT_CONSTEXPR sprout::basic_string to_u32string(sprout::uuids::uuid const& u) { return sprout::uuids::to_string_of(u); } } // namespace uuids diff --git a/sprout/variant/apply_visitor.hpp b/sprout/variant/apply_visitor.hpp index 05e84b32..88d6d4c8 100644 --- a/sprout/variant/apply_visitor.hpp +++ b/sprout/variant/apply_visitor.hpp @@ -6,7 +6,7 @@ namespace sprout { template - SPROUT_CONSTEXPR inline typename Visitor::result_type apply_visitor( + inline SPROUT_CONSTEXPR typename Visitor::result_type apply_visitor( Visitor&& visitor, Visitable&& visitable ) diff --git a/sprout/weed/attr_cnv/bitwise_or.hpp b/sprout/weed/attr_cnv/bitwise_or.hpp index f3ebcd7e..dc37286c 100644 --- a/sprout/weed/attr_cnv/bitwise_or.hpp +++ b/sprout/weed/attr_cnv/bitwise_or.hpp @@ -27,7 +27,7 @@ namespace sprout { // // container | container -> container template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_same_container::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type >::type bitwise_or(X const& x) { @@ -36,7 +36,7 @@ namespace sprout { } // container | V -> container template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_container_and_elem::value && sprout::weed::traits::is_container::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type @@ -45,7 +45,7 @@ namespace sprout { return sprout::fixed::realign_to(x); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_container_and_elem::value && !sprout::weed::traits::is_container::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type @@ -55,7 +55,7 @@ namespace sprout { } // V | container -> container template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_elem_and_container::value && sprout::weed::traits::is_container::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type @@ -64,7 +64,7 @@ namespace sprout { return sprout::fixed::realign_to(x); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_elem_and_container::value && !sprout::weed::traits::is_container::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type @@ -74,7 +74,7 @@ namespace sprout { } // tuple | tuple -> tuple template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_both_tuple::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type >::type bitwise_or(X const& x) { @@ -83,7 +83,7 @@ namespace sprout { } // V | V -> V template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_same_elem::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type >::type bitwise_or(X const& x) { @@ -91,7 +91,7 @@ namespace sprout { } // V | W -> variant template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_different_elem::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type >::type bitwise_or(X const& x) { @@ -99,7 +99,7 @@ namespace sprout { } // V | unused -> container template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_elem_and_unused::value && !sprout::weed::traits::is_unused::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type @@ -108,7 +108,7 @@ namespace sprout { return sprout::make(x); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_elem_and_unused::value && sprout::weed::traits::is_unused::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type @@ -118,7 +118,7 @@ namespace sprout { } // unused | V -> container template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_unused_and_elem::value && !sprout::weed::traits::is_unused::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type @@ -127,7 +127,7 @@ namespace sprout { return sprout::make(x); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_unused_and_elem::value && sprout::weed::traits::is_unused::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type @@ -137,7 +137,7 @@ namespace sprout { } // unused >> unused -> unused template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_both_unused::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type >::type bitwise_or(X const& x) { diff --git a/sprout/weed/attr_cnv/modulus.hpp b/sprout/weed/attr_cnv/modulus.hpp index bff87383..5793078b 100644 --- a/sprout/weed/attr_cnv/modulus.hpp +++ b/sprout/weed/attr_cnv/modulus.hpp @@ -13,7 +13,7 @@ namespace sprout { // modulus // template - SPROUT_CONSTEXPR inline typename sprout::weed::attr_cnv::result_of::modulus::type + inline SPROUT_CONSTEXPR typename sprout::weed::attr_cnv::result_of::modulus::type modulus(Args const&... args) { return sprout::weed::attr_cnv::times(args...); } diff --git a/sprout/weed/attr_cnv/negate.hpp b/sprout/weed/attr_cnv/negate.hpp index 3d62685b..cb70bbba 100644 --- a/sprout/weed/attr_cnv/negate.hpp +++ b/sprout/weed/attr_cnv/negate.hpp @@ -15,7 +15,7 @@ namespace sprout { // // !unused -> unused template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::traits::is_unused::value, typename sprout::weed::attr_cnv::result_of::negate::type >::type negate(T const& t, bool cond) { diff --git a/sprout/weed/attr_cnv/shift_left.hpp b/sprout/weed/attr_cnv/shift_left.hpp index d4feb71d..778ed774 100644 --- a/sprout/weed/attr_cnv/shift_left.hpp +++ b/sprout/weed/attr_cnv/shift_left.hpp @@ -31,7 +31,7 @@ namespace sprout { // // container >> container -> container template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_same_container::value, typename sprout::weed::attr_cnv::result_of::shift_left::type >::type shift_left(T const& t, U const& u) { @@ -39,7 +39,7 @@ namespace sprout { } // container >> V -> container template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_container_and_elem::value, typename sprout::weed::attr_cnv::result_of::shift_left::type >::type shift_left(T const& t, U const& u) { @@ -47,7 +47,7 @@ namespace sprout { } // V >> container -> container template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_elem_and_container::value, typename sprout::weed::attr_cnv::result_of::shift_left::type >::type shift_left(T const& t, U const& u) { @@ -55,7 +55,7 @@ namespace sprout { } // tuple >> tuple -> tuple template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_both_tuple::value, typename sprout::weed::attr_cnv::result_of::shift_left::type >::type shift_left(T const& t, U const& u) { @@ -63,7 +63,7 @@ namespace sprout { } // tuple >> V -> tuple template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_tuple_and_elem::value, typename sprout::weed::attr_cnv::result_of::shift_left::type >::type shift_left(T const& t, U const& u) { @@ -71,7 +71,7 @@ namespace sprout { } // V >> tuple -> tuple template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_elem_and_tuple::value, typename sprout::weed::attr_cnv::result_of::shift_left::type >::type shift_left(T const& t, U const& u) { @@ -79,7 +79,7 @@ namespace sprout { } // V >> V -> container template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_same_elem::value, typename sprout::weed::attr_cnv::result_of::shift_left::type >::type shift_left(T const& t, U const& u) { @@ -88,7 +88,7 @@ namespace sprout { } // V >> W -> tuple template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_different_elem::value, typename sprout::weed::attr_cnv::result_of::shift_left::type >::type shift_left(T const& t, U const& u) { @@ -96,7 +96,7 @@ namespace sprout { } // V >> unused -> V template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_elem_and_unused::value, typename sprout::weed::attr_cnv::result_of::shift_left::type >::type shift_left(T const& t, U const& u) { @@ -104,7 +104,7 @@ namespace sprout { } // unused >> V -> V template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_unused_and_elem::value, typename sprout::weed::attr_cnv::result_of::shift_left::type >::type shift_left(T const& t, U const& u) { @@ -112,7 +112,7 @@ namespace sprout { } // unused >> unused -> unused template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_both_unused::value, typename sprout::weed::attr_cnv::result_of::shift_left::type >::type shift_left(T const& t, U const& u) { diff --git a/sprout/weed/expr/eval.hpp b/sprout/weed/expr/eval.hpp index 01fa7fb4..4c5248df 100644 --- a/sprout/weed/expr/eval.hpp +++ b/sprout/weed/expr/eval.hpp @@ -11,7 +11,7 @@ namespace sprout { // eval // template - SPROUT_CONSTEXPR inline typename Context::template eval< + inline SPROUT_CONSTEXPR typename Context::template eval< typename sprout::weed::traits::terminal_or_expr_of::type >::result_type eval( Expr const& expr, diff --git a/sprout/weed/expr/make_expr.hpp b/sprout/weed/expr/make_expr.hpp index 4cb9a53f..de9223a4 100644 --- a/sprout/weed/expr/make_expr.hpp +++ b/sprout/weed/expr/make_expr.hpp @@ -13,7 +13,7 @@ namespace sprout { // make_expr // template - SPROUT_CONSTEXPR inline typename sprout::weed::traits::expr_of::type + inline SPROUT_CONSTEXPR typename sprout::weed::traits::expr_of::type make_expr(Args&&... args) { return typename sprout::weed::traits::expr_of::type( sprout::weed::make_terminal_or_expr(sprout::forward(args))... diff --git a/sprout/weed/expr/make_terminal.hpp b/sprout/weed/expr/make_terminal.hpp index 53ca722c..d0cd0bd4 100644 --- a/sprout/weed/expr/make_terminal.hpp +++ b/sprout/weed/expr/make_terminal.hpp @@ -15,7 +15,7 @@ namespace sprout { // make_terminal // template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< !sprout::weed::traits::is_c_str< typename sprout::weed::detail::uncvref::type >::value, @@ -26,7 +26,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::traits::is_c_str< typename sprout::weed::detail::uncvref::type >::value, diff --git a/sprout/weed/expr/make_terminal_or_expr.hpp b/sprout/weed/expr/make_terminal_or_expr.hpp index cf9a52b1..01fb4eeb 100644 --- a/sprout/weed/expr/make_terminal_or_expr.hpp +++ b/sprout/weed/expr/make_terminal_or_expr.hpp @@ -15,7 +15,7 @@ namespace sprout { // make_terminal_or_expr // template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::traits::is_expr< typename sprout::weed::detail::uncvref::type >::value, @@ -24,7 +24,7 @@ namespace sprout { return sprout::forward(arg); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< !sprout::weed::traits::is_expr< typename sprout::weed::detail::uncvref::type >::value, diff --git a/sprout/weed/operator/address_of.hpp b/sprout/weed/operator/address_of.hpp index 5c4b66e0..bc28553b 100644 --- a/sprout/weed/operator/address_of.hpp +++ b/sprout/weed/operator/address_of.hpp @@ -23,7 +23,7 @@ namespace sprout { >::value >::type > - SPROUT_CONSTEXPR inline typename sprout::weed::traits::expr_of< + inline SPROUT_CONSTEXPR typename sprout::weed::traits::expr_of< sprout::weed::tag::address_of, Arg >::type operator&(Arg&& arg) { diff --git a/sprout/weed/operator/bitwise_or.hpp b/sprout/weed/operator/bitwise_or.hpp index 86314c48..a8549eff 100644 --- a/sprout/weed/operator/bitwise_or.hpp +++ b/sprout/weed/operator/bitwise_or.hpp @@ -27,7 +27,7 @@ namespace sprout { >::value >::type > - SPROUT_CONSTEXPR inline typename sprout::weed::traits::expr_of< + inline SPROUT_CONSTEXPR typename sprout::weed::traits::expr_of< sprout::weed::tag::bitwise_or, Arg1, Arg2 diff --git a/sprout/weed/operator/dereference.hpp b/sprout/weed/operator/dereference.hpp index 7367e23b..611dcef3 100644 --- a/sprout/weed/operator/dereference.hpp +++ b/sprout/weed/operator/dereference.hpp @@ -23,7 +23,7 @@ namespace sprout { >::value >::type > - SPROUT_CONSTEXPR inline typename sprout::weed::traits::expr_of< + inline SPROUT_CONSTEXPR typename sprout::weed::traits::expr_of< sprout::weed::tag::dereference, Arg >::type operator*(Arg&& arg) { diff --git a/sprout/weed/operator/logical_not.hpp b/sprout/weed/operator/logical_not.hpp index 6f566a4d..d4ecde2b 100644 --- a/sprout/weed/operator/logical_not.hpp +++ b/sprout/weed/operator/logical_not.hpp @@ -23,7 +23,7 @@ namespace sprout { >::value >::type > - SPROUT_CONSTEXPR inline typename sprout::weed::traits::expr_of< + inline SPROUT_CONSTEXPR typename sprout::weed::traits::expr_of< sprout::weed::tag::logical_not, Arg >::type operator!(Arg&& arg) { diff --git a/sprout/weed/operator/minus.hpp b/sprout/weed/operator/minus.hpp index 9c73d7cc..9557fc9d 100644 --- a/sprout/weed/operator/minus.hpp +++ b/sprout/weed/operator/minus.hpp @@ -27,7 +27,7 @@ namespace sprout { >::value >::type > - SPROUT_CONSTEXPR inline typename sprout::weed::traits::expr_of< + inline SPROUT_CONSTEXPR typename sprout::weed::traits::expr_of< sprout::weed::tag::minus, Arg1, Arg2 diff --git a/sprout/weed/operator/modulus.hpp b/sprout/weed/operator/modulus.hpp index 68e691be..b4eb3e33 100644 --- a/sprout/weed/operator/modulus.hpp +++ b/sprout/weed/operator/modulus.hpp @@ -27,7 +27,7 @@ namespace sprout { >::value >::type > - SPROUT_CONSTEXPR inline typename sprout::weed::traits::expr_of< + inline SPROUT_CONSTEXPR typename sprout::weed::traits::expr_of< sprout::weed::tag::modulus, Arg1, Arg2 diff --git a/sprout/weed/operator/negate.hpp b/sprout/weed/operator/negate.hpp index c8e3be79..c07f64cf 100644 --- a/sprout/weed/operator/negate.hpp +++ b/sprout/weed/operator/negate.hpp @@ -23,7 +23,7 @@ namespace sprout { >::value >::type > - SPROUT_CONSTEXPR inline typename sprout::weed::traits::expr_of< + inline SPROUT_CONSTEXPR typename sprout::weed::traits::expr_of< sprout::weed::tag::negate, Arg >::type operator-(Arg&& arg) { diff --git a/sprout/weed/operator/shift_left.hpp b/sprout/weed/operator/shift_left.hpp index 5e13ffc3..673606ab 100644 --- a/sprout/weed/operator/shift_left.hpp +++ b/sprout/weed/operator/shift_left.hpp @@ -27,7 +27,7 @@ namespace sprout { >::value >::type > - SPROUT_CONSTEXPR inline typename sprout::weed::traits::expr_of< + inline SPROUT_CONSTEXPR typename sprout::weed::traits::expr_of< sprout::weed::tag::shift_left, Arg1, Arg2 diff --git a/sprout/weed/operator/unary_plus.hpp b/sprout/weed/operator/unary_plus.hpp index 95c8279e..09e3df92 100644 --- a/sprout/weed/operator/unary_plus.hpp +++ b/sprout/weed/operator/unary_plus.hpp @@ -23,7 +23,7 @@ namespace sprout { >::value >::type > - SPROUT_CONSTEXPR inline typename sprout::weed::traits::expr_of< + inline SPROUT_CONSTEXPR typename sprout::weed::traits::expr_of< sprout::weed::tag::unary_plus, Arg >::type operator+(Arg&& arg) { diff --git a/sprout/weed/parse.hpp b/sprout/weed/parse.hpp index a630aa6a..0bcee024 100644 --- a/sprout/weed/parse.hpp +++ b/sprout/weed/parse.hpp @@ -12,7 +12,7 @@ namespace sprout { // parse // template - SPROUT_CONSTEXPR inline typename sprout::weed::parse_context::template eval< + inline SPROUT_CONSTEXPR typename sprout::weed::parse_context::template eval< typename sprout::weed::traits::terminal_or_expr_of::type >::result_type::presult_type parse( Iterator first, diff --git a/sprout/weed/parser/string/string.hpp b/sprout/weed/parser/string/string.hpp index aded7629..52343fc8 100644 --- a/sprout/weed/parser/string/string.hpp +++ b/sprout/weed/parser/string/string.hpp @@ -139,7 +139,7 @@ namespace sprout { // string // template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::traits::is_c_str::value, sprout::weed::str_p< typename sprout::weed::detail::c_str_as_string::type @@ -150,7 +150,7 @@ namespace sprout { >(sprout::to_string(t)); } template - SPROUT_CONSTEXPR inline typename std::enable_if< + inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::traits::is_string::value, sprout::weed::str_p >::type string(T const& t) {