libstdc++: Add [[nodiscard]] to experimental::randint

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>

libstdc++-v3/ChangeLog:

	* include/experimental/random (experimental::randint): Add
	nodiscard attribute.
This commit is contained in:
Jonathan Wakely 2021-08-12 18:05:24 +01:00
parent 27a1fb385b
commit 20ce14c799

View File

@ -50,6 +50,7 @@ inline namespace fundamentals_v2 {
// 13.2.2.1, Function template randint
template<typename _IntType>
[[__nodiscard__]]
inline _IntType
randint(_IntType __a, _IntType __b)
{