mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-02-04 21:33:56 +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
|
Interface
|
||||||
========================================
|
========================================
|
||||||
.. sourcecode:: c++
|
.. sourcecode:: c++
|
||||||
|
|
||||||
SPROUT_CONSTEXPR const_iterator cbegin() const SPROUT_NOEXCEPT;
|
SPROUT_CONSTEXPR const_iterator cend() const SPROUT_NOEXCEPT;
|
||||||
|
|
||||||
Returns
|
Returns
|
||||||
========================================
|
========================================
|
||||||
|
@ -22,7 +22,7 @@ Examples
|
||||||
using namespace sprout;
|
using namespace sprout;
|
||||||
|
|
||||||
SPROUT_STATIC_CONSTEXPR auto input = array<int, 10>{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
|
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
|
Complexity
|
||||||
========================================
|
========================================
|
||||||
|
|
|
@ -24,7 +24,7 @@ Examples
|
||||||
using namespace sprout;
|
using namespace sprout;
|
||||||
|
|
||||||
SPROUT_STATIC_CONSTEXPR auto input = array<int, 10>{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
|
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
|
Complexity
|
||||||
========================================
|
========================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue