Merge pull request #44 from kariya-mitsuru/array.iterators-doc

[array.end, array.cend] Fix document typo
This commit is contained in:
Bolero MURAKAMI 2013-09-08 17:51:24 -07:00
commit 65410a3b00
2 changed files with 5 additions and 5 deletions

View file

@ -1,13 +1,13 @@
.. _sprout-array-array-cbegin:
.. _sprout-array-array-cend:
###############################################################################
cbegin
cend
###############################################################################
Interface
========================================
.. sourcecode:: c++
SPROUT_CONSTEXPR const_iterator cbegin() const SPROUT_NOEXCEPT;
SPROUT_CONSTEXPR const_iterator cend() const SPROUT_NOEXCEPT;
Returns
========================================
@ -22,7 +22,7 @@ Examples
using namespace sprout;
SPROUT_STATIC_CONSTEXPR auto input = array<int, 10>{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
static_assert(*(input.cbegin() - 1) == 10, "input last element is 10.");
static_assert(*(input.cend() - 1) == 10, "input last element is 10.");
Complexity
========================================

View file

@ -24,7 +24,7 @@ Examples
using namespace sprout;
SPROUT_STATIC_CONSTEXPR auto input = array<int, 10>{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
static_assert(*(input.end() - 1) == 1, "input last element is 10.");
static_assert(*(input.end() - 1) == 10, "input last element is 10.");
Complexity
========================================