mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add type_traits for variable templates version
This commit is contained in:
parent
7e709630c6
commit
61dd3351fc
26 changed files with 205 additions and 48 deletions
|
@ -25,6 +25,11 @@ namespace sprout {
|
|||
typename std::remove_reference<typename sprout::lvalue_reference<Range>::type>::type
|
||||
>::iterator type;
|
||||
};
|
||||
|
||||
#if SPROUT_USE_TEMPLATE_ALIASES
|
||||
template<typename Range>
|
||||
using lvalue_iterator_t = typename sprout::range::lvalue_iterator<Range>::type;
|
||||
#endif // #if SPROUT_USE_TEMPLATE_ALIASES
|
||||
} // namespace range
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -22,6 +22,11 @@ namespace sprout {
|
|||
public:
|
||||
typedef sprout::range::range_container<typename sprout::range::lvalue_iterator<Range>::type> type;
|
||||
};
|
||||
|
||||
#if SPROUT_USE_TEMPLATE_ALIASES
|
||||
template<typename Range>
|
||||
using lvalue_range_t = typename sprout::range::lvalue_range<Range>::type;
|
||||
#endif // #if SPROUT_USE_TEMPLATE_ALIASES
|
||||
} // namespace range
|
||||
} // namespace sprout
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue