mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix inline
add container/indexes.hpp add tuple/indexes.hpp
This commit is contained in:
parent
ba6482d1ec
commit
c6bd230ee4
340 changed files with 1087 additions and 979 deletions
|
@ -11,7 +11,7 @@
|
|||
namespace sprout {
|
||||
namespace detail {
|
||||
template<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size == sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
>::type container_complate_2(
|
||||
|
@ -22,7 +22,7 @@ namespace sprout {
|
|||
return sprout::remake<Result>(result, sprout::size(result), args...);
|
||||
}
|
||||
template<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size != sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::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<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size == sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
>::type container_complate_1(
|
||||
|
@ -45,7 +45,7 @@ namespace sprout {
|
|||
return sprout::remake<Result>(result, sprout::size(result), args...);
|
||||
}
|
||||
template<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size != sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
>::type container_complate_1(
|
||||
|
@ -60,7 +60,7 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
template<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size == sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
>::type container_complate(
|
||||
|
@ -71,7 +71,7 @@ namespace sprout {
|
|||
return sprout::remake<Result>(result, sprout::size(result), args...);
|
||||
}
|
||||
template<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size != sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
>::type container_complate(
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
namespace sprout {
|
||||
namespace detail {
|
||||
template<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size == sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
>::type container_complate_backward_2(
|
||||
|
@ -22,7 +22,7 @@ namespace sprout {
|
|||
return sprout::remake<Result>(result, sprout::size(result), args...);
|
||||
}
|
||||
template<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size != sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::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<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size == sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
>::type container_complate_backward_1(
|
||||
|
@ -45,7 +45,7 @@ namespace sprout {
|
|||
return sprout::remake<Result>(result, sprout::size(result), args...);
|
||||
}
|
||||
template<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size != sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
>::type container_complate_backward_1(
|
||||
|
@ -60,7 +60,7 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
template<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size == sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
>::type container_complate_backward(
|
||||
|
@ -71,7 +71,7 @@ namespace sprout {
|
|||
return sprout::remake<Result>(result, sprout::size(result), args...);
|
||||
}
|
||||
template<typename Result, typename... Args>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sprout::container_traits<Result>::static_size != sizeof...(Args),
|
||||
typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
>::type container_complate_backward(
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
namespace sprout {
|
||||
namespace detail {
|
||||
template<typename Iterator>
|
||||
SPROUT_CONSTEXPR inline typename std::iterator_traits<Iterator>::difference_type overlap_count_impl(
|
||||
inline SPROUT_CONSTEXPR typename std::iterator_traits<Iterator>::difference_type overlap_count_impl(
|
||||
Iterator first,
|
||||
Iterator last,
|
||||
typename std::iterator_traits<Iterator>::value_type const& value,
|
||||
|
@ -26,7 +26,7 @@ namespace sprout {
|
|||
// overlap_count
|
||||
//
|
||||
template<typename Iterator>
|
||||
SPROUT_CONSTEXPR inline typename std::iterator_traits<Iterator>::difference_type overlap_count(
|
||||
inline SPROUT_CONSTEXPR typename std::iterator_traits<Iterator>::difference_type overlap_count(
|
||||
Iterator first,
|
||||
Iterator last
|
||||
)
|
||||
|
@ -38,7 +38,7 @@ namespace sprout {
|
|||
}
|
||||
|
||||
template<typename Iterator, typename Predicate>
|
||||
SPROUT_CONSTEXPR inline typename std::iterator_traits<Iterator>::difference_type overlap_count_impl(
|
||||
inline SPROUT_CONSTEXPR typename std::iterator_traits<Iterator>::difference_type overlap_count_impl(
|
||||
Iterator first,
|
||||
Iterator last,
|
||||
Predicate pred,
|
||||
|
@ -56,7 +56,7 @@ namespace sprout {
|
|||
// overlap_count
|
||||
//
|
||||
template<typename Iterator, typename Predicate>
|
||||
SPROUT_CONSTEXPR inline typename std::iterator_traits<Iterator>::difference_type overlap_count(
|
||||
inline SPROUT_CONSTEXPR typename std::iterator_traits<Iterator>::difference_type overlap_count(
|
||||
Iterator first,
|
||||
Iterator last,
|
||||
Predicate pred
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace sprout {
|
|||
// overlap_count_2
|
||||
//
|
||||
template<typename Iterator1, typename Iterator2, typename Compare>
|
||||
SPROUT_CONSTEXPR inline typename std::iterator_traits<Iterator1>::difference_type overlap_count_2(
|
||||
inline SPROUT_CONSTEXPR typename std::iterator_traits<Iterator1>::difference_type overlap_count_2(
|
||||
Iterator1 first1,
|
||||
Iterator1 last1,
|
||||
Iterator2 first2,
|
||||
|
@ -32,7 +32,7 @@ namespace sprout {
|
|||
// overlap_count_2
|
||||
//
|
||||
template<typename Iterator1, typename Iterator2>
|
||||
SPROUT_CONSTEXPR inline typename std::iterator_traits<Iterator1>::difference_type overlap_count_2(
|
||||
inline SPROUT_CONSTEXPR typename std::iterator_traits<Iterator1>::difference_type overlap_count_2(
|
||||
Iterator1 first1,
|
||||
Iterator1 last1,
|
||||
Iterator2 first2,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
namespace sprout {
|
||||
namespace detail {
|
||||
template<typename R, typename T, typename... Values>
|
||||
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<typename R, typename T, typename... Values>
|
||||
SPROUT_CONSTEXPR inline typename std::enable_if<
|
||||
inline SPROUT_CONSTEXPR typename std::enable_if<
|
||||
sizeof...(Values) != 0,
|
||||
R
|
||||
>::type param_at(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue