mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
add doc: basic_string assign
This commit is contained in:
parent
c6a9bf338a
commit
5af5e8c300
24 changed files with 1489 additions and 44 deletions
|
@ -16,7 +16,9 @@ Interface
|
|||
Effects
|
||||
========================================
|
||||
|
||||
| ``std::copy(rhs.begin(), rhs.end(), begin())``, ``std::move(rhs.begin(), rhs.end(), begin())``.
|
||||
| ``std::copy(rhs.begin(), rhs.end(), begin())``.
|
||||
| or
|
||||
| ``std::move(rhs.begin(), rhs.end(), begin())``.
|
||||
|
||||
Returns
|
||||
========================================
|
||||
|
@ -28,10 +30,13 @@ Examples
|
|||
.. sourcecode:: c++
|
||||
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/assert.hpp>
|
||||
using namespace sprout;
|
||||
|
||||
auto x = array<int, 10>{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}};
|
||||
x = array<int, 10>{{10, 9, 8, 7, 6, 5, 4, 3, 2, 1}};
|
||||
SPROUT_STATIC_CONSTEXPR auto y = array<int, 10>{{10, 9, 8, 7, 6, 5, 4, 3, 2, 1}};
|
||||
x = y;
|
||||
SPROUT_ASSERT_MSG(x == y, "y is assigned to x.");
|
||||
|
||||
Header
|
||||
========================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue