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:
parent
c995ffd177
commit
66cea44736
4 changed files with 125 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue