text
stringlengths 0
2.2M
|
---|
case 4: {
|
// --------------------------------------------------------------------
|
// TESTING 'BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE'
|
//
|
// Concerns:
|
//: 1 'BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE' is defined only when the
|
//: native standard library defines the '<tuple>' class template.
|
//:
|
//: 2 If 'BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE' is defined then the
|
//: related macro 'BSLS_COMPILERFEATURES_SUPPORT_VARIADIC_TEMPLATES'
|
//: is also defined.
|
//
|
// Plan:
|
//: 1 When 'BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE' is defined compile
|
//: code that includes '<tuple>' and constructs a 'tuple' object.
|
//:
|
//: 2 If 'BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE' is defined confirm that
|
//: 'BSLS_COMPILERFEATURES_SUPPORT_VARIADIC_TEMPLATES' is also
|
//: defined using the associated conditionally initialized global
|
//: variables. See "Global constants for testing invariants" above.
|
//
|
// Testing:
|
// BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE
|
// --------------------------------------------------------------------
|
if (verbose) printf(
|
"TESTING 'BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE'\n"
|
"==============================================\n");
|
if (verbose) {
|
P(u_BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE_defined);
|
}
|
if (u_BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE_defined) {
|
ASSERT(true ==
|
u_BSLS_COMPILERFEATURES_SUPPORT_VARIADIC_TEMPLATES_defined);
|
}
|
if (veryVeryVerbose) P(BSLS_PLATFORM_CMP_VERSION);
|
} break;
|
case 3: {
|
// --------------------------------------------------------------------
|
// TESTING 'BSLS_LIBRARYFEATURES_HAS_CPP11_PAIR_PIECEWISE_CONSTRUCTOR'
|
//
|
// Concerns:
|
//: 1 The 'BSLS_LIBRARYFEATURES_HAS_CPP11_PAIR_PIECEWISE_CONSTRUCTOR'
|
//: flag is defined when the native standard library defines for its
|
//: 'pair' class template (defined in '<utility>') a constructor that
|
//: accepts as arguments 'native_std::piecewise_construct' (also
|
//: defined in '<utility>' followed by two 'tuple' arguments.
|
//:
|
//: 2 If 'BSLS_LIBRARYFEATURES_HAS_CPP11_PAIR_PIECEWISE_CONSTRUCTOR' is
|
//: defined then related macros
|
//: 'BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE'
|
//: 'BSLS_COMPILERFEATURES_SUPPORT_VARIADIC_TEMPLATES' are also
|
//: defined.
|
//
|
// Plan:
|
//: 1 When 'BSLS_LIBRARYFEATURES_HAS_CPP11_PAIR_PIECEWISE_CONSTRUCTOR'
|
//: is defined conditionally compile code that includes '<utility>',
|
//: '<tuple>' and creates an object using the constructor specified
|
//: in C-1.
|
//:
|
//: 2 Confirm the expected relationship between
|
//: 'BSLS_LIBRARYFEATURES_HAS_CPP11_PAIR_PIECEWISE_CONSTRUCTOR' and
|
//: its related macros 'BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE'
|
//: 'BSLS_LIBRARYFEATURES_HAS_CPP98_AUTO_PTR' using the associated
|
//: conditionally initialized global variables. See "Global
|
//: constants for testing invariants" above.
|
//
|
// Testing:
|
// BSLS_LIBRARYFEATURES_HAS_CPP11_PAIR_PIECEWISE_CONSTRUCTOR
|
// --------------------------------------------------------------------
|
if (verbose) printf(
|
"TESTING 'BSLS_LIBRARYFEATURES_HAS_CPP11_PAIR_PIECEWISE_CONSTRUCTOR'\n"
|
"===================================================================\n");
|
if (verbose) {
|
P(u_BSLS_LIBRARYFEATURES_HAS_CPP11_PAIR_PIECEWISE_CONSTRUCTOR_defined)
|
}
|
if(u_BSLS_LIBRARYFEATURES_HAS_CPP11_PAIR_PIECEWISE_CONSTRUCTOR_defined)
|
{
|
ASSERT(true == u_BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE_defined);
|
ASSERT(true ==
|
u_BSLS_COMPILERFEATURES_SUPPORT_VARIADIC_TEMPLATES_defined);
|
}
|
if (veryVeryVerbose) P(BSLS_PLATFORM_CMP_VERSION);
|
} break;
|
case 2: {
|
// --------------------------------------------------------------------
|
// TESTING 'BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY'
|
//
|
// Concerns:
|
//: 1 The 'BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY' flag is
|
//: defined when the native standard library defines the following
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.