Title
Uniform_int template parameters
Status
nad
Section
[rand.dist.uni][tr.rand.dist.iunif]
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: Moved to NAD. N1932 makes this moot: the input_type template parameter has been eliminated. ]

Date: 2010-10-21.18:28:33

Proposed resolution:

We recommend that there be a second template parameter to reflect the distribution's input_type, and that the existing first template parameter continue to reflect (solely) the result_type:

template< class IntType = int, UIntType = unsigned int >
class uniform_int
{
public:
  // types
  typedef  UIntType  input_type;
  typedef  IntType   result_type;
Date: 2005-07-03.00:00:00

In [tr.rand.dist.iunif] the uniform_int distribution currently has a single template parameter, IntType, used as the input_type and as the result_type of the distribution. We believe there is no reason to conflate these types in this way.

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