Title
Result_type in random distribution requirements
Status
cd1
Section
[rand.req][tr.rand.req]
Submitter
Walter Brown

Created on 2005-07-03.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

[ Berlin: Voted to WP. N1932 adopts the proposed resolution: see Table 5 row 1. ]

Date: 2010-10-21.18:28:33

Proposed resolution:

It seems to me that this is also a requirement for all distributions and should therefore be indicated as such via a new second row to this table 17:

X::result_typeT---compile-time
Date: 2005-07-03.00:00:00

Table 17: Random distribution requirements

Row 1 requires that each random distribution provide a nested type "input_type"; this type denotes the type of the values that the distribution consumes.

Inspection of all distributions in [tr.rand.dist] reveals that each distribution provides a second typedef ("result_type") that denotes the type of the values the distribution produces when called.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2876
2010-10-21 18:28:33adminsetmessages: + msg2875
2005-07-03 00:00:00admincreate