mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-29 01:03:45 +00:00
Merge pull request #44 from kariya-mitsuru/array.iterators-doc
[array.end, array.cend] Fix document typo
This commit is contained in:
commit
65410a3b00
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
========================================
|
||||
|
|
|
@ -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
|
||||
========================================
|
||||
|
|
Loading…
Reference in a new issue