mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-10 10:45:09 +08:00
* include/bits/random.h (seed_seq): More noexcept (LWG 2440).
From-SVN: r223155
This commit is contained in:
parent
32e6a60e3a
commit
9933eb862e
@ -1,5 +1,7 @@
|
|||||||
2015-05-13 Jonathan Wakely <jwakely@redhat.com>
|
2015-05-13 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
* include/bits/random.h (seed_seq): More noexcept (LWG 2440).
|
||||||
|
|
||||||
* include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
|
* include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
|
||||||
* testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
|
* testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
|
||||||
* testsuite/23_containers/forward_list/allocator/minimal.cc:
|
* testsuite/23_containers/forward_list/allocator/minimal.cc:
|
||||||
|
@ -6023,13 +6023,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||||||
*/
|
*/
|
||||||
class seed_seq
|
class seed_seq
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/** The type of the seed vales. */
|
/** The type of the seed vales. */
|
||||||
typedef uint_least32_t result_type;
|
typedef uint_least32_t result_type;
|
||||||
|
|
||||||
/** Default constructor. */
|
/** Default constructor. */
|
||||||
seed_seq()
|
seed_seq() noexcept
|
||||||
: _M_v()
|
: _M_v()
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
@ -6045,7 +6044,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||||||
generate(_RandomAccessIterator __begin, _RandomAccessIterator __end);
|
generate(_RandomAccessIterator __begin, _RandomAccessIterator __end);
|
||||||
|
|
||||||
// property functions
|
// property functions
|
||||||
size_t size() const
|
size_t size() const noexcept
|
||||||
{ return _M_v.size(); }
|
{ return _M_v.size(); }
|
||||||
|
|
||||||
template<typename OutputIterator>
|
template<typename OutputIterator>
|
||||||
@ -6058,7 +6057,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||||||
seed_seq& operator=(const seed_seq&) = delete;
|
seed_seq& operator=(const seed_seq&) = delete;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
///
|
|
||||||
std::vector<result_type> _M_v;
|
std::vector<result_type> _M_v;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user