1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add sprout::data() non-member function

This commit is contained in:
bolero-MURAKAMI 2014-07-12 21:37:49 +09:00
parent c995ffd177
commit 66cea44736
4 changed files with 125 additions and 0 deletions

View file

@ -75,6 +75,16 @@ namespace sprout {
template<typename Container>
SPROUT_CONSTEXPR typename sprout::container_traits<Container const>::reference
at(Container const& cont, typename sprout::container_traits<Container const>::size_type i);
//
// data
//
template<typename Container>
SPROUT_CONSTEXPR typename sprout::container_traits<Container>::pointer
data(Container& cont);
template<typename Container>
SPROUT_CONSTEXPR typename sprout::container_traits<Container const>::pointer
data(Container const& cont);
} // namespace sprout