text
stringlengths 0
2.2M
|
---|
// bsls_libraryfeatures.t.cpp -*-C++-*-
|
#include <bsls_libraryfeatures.h>
|
#include <bsls_bsltestutil.h>
|
#include <bsls_buildtarget.h>
|
#include <bsls_compilerfeatures.h>
|
#include <bsls_keyword.h>
|
#include <bsls_nativestd.h>
|
#include <stddef.h> // for 'size_t'
|
#include <stdio.h> // for 'printf'
|
#include <stdlib.h> // for 'atoi'
|
#if defined(BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY)
|
// Verify assumption that the BASELINE C++11 library includes all of the
|
// new library headers not covered by a more specific macro. Note that we
|
// must actively #include each header to check for errors as simply testing
|
// '__has_include(<header>)' will give false positives in BSL_OVERRIDES_STD
|
// mode, finding our own intercept headers that simply forward to the
|
// original platform header, assuming it is available.
|
# include <array>
|
# include <atomic>
|
# include <chrono>
|
# include <codecvt>
|
# include <condition_variable>
|
# include <forward_list>
|
# include <future>
|
//include <initializer_list>
|
// BSLS_COMPILERFEATURES_SUPPORT_GENERALIZED_INITIALIZERS
|
# include <mutex>
|
# include <random>
|
# include <regex>
|
# include <scoped_allocator>
|
# include <system_error>
|
# include <thread>
|
//include <tuple> // BSLS_LIBRARYFEATURES_HAS_CPP11_TUPLE
|
//include <type_traits> // BSLS_COMPILERFEATURES_SUPPORT_TRAITS_HEADER
|
# include <typeindex>
|
# include <unordered_map>
|
# include <unordered_set>
|
#endif
|
#if defined(BSLS_LIBRARYFEATURES_HAS_CPP14_BASELINE_LIBRARY)
|
// Verify assumption that the BASELINE C++14 library includes all of the
|
// new library headers not covered by a more specific macro. Note that we
|
// must actively #include each header to check for errors as simply testing
|
// '__has_include(<header>)' will give false positives in BSL_OVERRIDES_STD
|
// mode, finding our own intercept headers that simply forward to the
|
// original platform header, assuming it is available.
|
# include <shared_mutex>
|
#endif
|
#if defined(BSLS_LIBRARYFEATURES_HAS_CPP17_BASELINE_LIBRARY)
|
// Verify assumption that the BASELINE C++17 library includes all of the
|
// new library headers not covered by a more specific macro. Note that we
|
// must actively #include each header to check for errors as simply testing
|
// '__has_include(<header>)' will give false positives in BSL_OVERRIDES_STD
|
// mode, finding our own intercept headers that simply forward to the
|
// original platform header, assuming it is available.
|
# include <any>
|
//include <charconv> // LIBRARYFEATURES_HAS_CPP17_CHARCONV
|
//include <execution> // LIBRARYFEATURES_HAS_CPP17_PARALLEL_ALGORITHMS
|
//include <filesystem> // LIBRARYFEATURES_HAS_CPP17_FILESYSTEM
|
//include <memory_resource> // LIBRARYFEATURES_HAS_CPP17_PMR
|
# include <optional>
|
# include <string_view>
|
# include <variant>
|
#endif
|
#if defined(BSLS_LIBRARYFEATURES_HAS_CPP17_INT_CHARCONV) \
|
|| defined(BSLS_LIBRARYFEATURES_HAS_CPP17_FLOAT_FROM_CHARS_CHARCONV) \
|
|| defined(BSLS_LIBRARYFEATURES_HAS_CPP17_CHARCONV)
|
// Verify assumption that <charconv> is includeable. Note that we must
|
// actively #include each header to check for errors as simply testing
|
// '__has_include(<header>)' will give false positives in BSL_OVERRIDES_STD
|
// mode, finding our own intercept headers that simply forward to the
|
// original platform header, assuming it is available.
|
# include <charconv>
|
#endif
|
#if defined(BSLS_LIBRARYFEATURES_HAS_CPP17_PARALLEL_ALGORITHMS)
|
// Verify assumption that <execution> is includeable. Note that we must
|
// actively #include each header to check for errors as simply testing
|
// '__has_include(<header>)' will give false positives in BSL_OVERRIDES_STD
|
// mode, finding our own intercept headers that simply forward to the
|
// original platform header, assuming it is available.
|
# include <execution>
|
#endif
|
#if defined(BSLS_LIBRARYFEATURES_HAS_CPP17_FILESYSTEM)
|
// Verify assumption that <filesystem> is includeable. Note that we must
|
// actively #include each header to check for errors as simply testing
|
// '__has_include(<header>)' will give false positives in BSL_OVERRIDES_STD
|
// mode, finding our own intercept headers that simply forward to the
|
// original platform header, assuming it is available.
|
# include <filesystem>
|
#endif
|
#if defined(BSLS_LIBRARYFEATURES_HAS_CPP17_PMR)
|
// Verify assumption that <memory_resource> is includeable. Note that we
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.