Create a user field value having the specified integral value. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Synopsis

Declared in <ball_userfieldvalue.h>

template<class t_INTEGRAL_TYPE>
explicit
UserFieldValue(
    t_INTEGRAL_TYPE value,
    bslma::Allocator* basicAllocator = 0)
requires bsl::is_integral<t_INTEGRAL_TYPE>::value;

Description

Note that this constructor is provided to disambiguate between constructors taking double and bsls::Types::Int64 when supplied an integer that is not of type bsls::Types::Int64. Also note that the implementation is (temporarily) provided inline to avoid issues with MSVC 2008.

Created with MrDocs