c393ec5a87
2008-10-18 Douglas Gregor <doug.gregor@gmail.com> * include/bits/stl_pair.h (__may_be_null_pointer_init): New. (pair::pair): Eliminate the redundant pair(U1&&, U2&&) constructor. Add lvalue pair<U1, U2> constructor to handle non-const pair lvalues. Remove the old variadic constructor, and instead provide several variadic constructors that avoid failing when attempting to initialize a pointer from a null pointer constant. * testsuite/20_util/pair/moveable.cc (test3): Add new tests with initialization of pointers from the null pointer constant. From-SVN: r141214 |
||
---|---|---|
.. | ||
add_lvalue_reference | ||
add_rvalue_reference | ||
aligned_storage | ||
allocator | ||
auto_ptr | ||
bad_function_call | ||
clocks | ||
common_type/requirements | ||
conditional/requirements | ||
decay/requirements | ||
duration | ||
enable_if/requirements | ||
enable_shared_from_this/requirements | ||
forward | ||
function_objects | ||
has_nothrow_copy_constructor | ||
has_nothrow_default_constructor | ||
has_trivial_copy_constructor | ||
has_trivial_default_constructor | ||
hash | ||
headers | ||
identity | ||
is_integral | ||
is_lvalue_reference | ||
is_reference | ||
is_rvalue_reference | ||
is_signed | ||
is_unsigned | ||
make_signed/requirements | ||
make_unsigned/requirements | ||
move | ||
pair | ||
ratio | ||
raw_storage_iterator/requirements | ||
reference_wrapper | ||
remove_reference | ||
shared_ptr | ||
specialized_algorithms | ||
time_point | ||
tuple | ||
unique_ptr | ||
weak_ptr | ||
rel_ops.cc | ||
temporary_buffer.cc |