diff options
author | tatiana-yan <tatiana.kondakova@gmail.com> | 2019-09-19 13:36:28 +0300 |
---|---|---|
committer | gmoryes <gmoryes@gmail.com> | 2019-09-19 18:48:06 +0300 |
commit | bd5abcf5a8ca3e71b3de2b8ea7d3ae5406bd40af (patch) | |
tree | cd000d4ef0e6107fdb1723742afeed284c89793e /std | |
parent | f8a8e0038cde418528c620fc60ffcbce60408c4f (diff) |
Got rid of the old style std/ includes for several files.
Diffstat (limited to 'std')
36 files changed, 0 insertions, 548 deletions
diff --git a/std/atomic.hpp b/std/atomic.hpp deleted file mode 100644 index f212289344..0000000000 --- a/std/atomic.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <atomic> - -using std::atomic; -using std::atomic_flag; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/auto_ptr.hpp b/std/auto_ptr.hpp deleted file mode 100644 index 1197110b43..0000000000 --- a/std/auto_ptr.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <memory> -using std::auto_ptr; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/bitset.hpp b/std/bitset.hpp deleted file mode 100644 index d0902ad414..0000000000 --- a/std/bitset.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <bitset> -using std::bitset; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/cctype.hpp b/std/cctype.hpp deleted file mode 100644 index 7cd7eee405..0000000000 --- a/std/cctype.hpp +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#include <cctype> - -using std::isdigit; diff --git a/std/cerrno.hpp b/std/cerrno.hpp deleted file mode 100644 index 05b935e846..0000000000 --- a/std/cerrno.hpp +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <cerrno> - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/chrono.hpp b/std/chrono.hpp deleted file mode 100644 index 3aadbf8ae6..0000000000 --- a/std/chrono.hpp +++ /dev/null @@ -1,24 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <chrono> - -using std::chrono::duration; -using std::chrono::duration_cast; -using std::chrono::high_resolution_clock; -using std::chrono::hours; -using std::chrono::milliseconds; -using std::chrono::minutes; -using std::chrono::nanoseconds; -using std::chrono::seconds; -using std::chrono::steady_clock; -using std::chrono::system_clock; -using std::chrono::time_point; -using std::chrono::time_point_cast; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/cmath.hpp b/std/cmath.hpp deleted file mode 100644 index aa43ca7352..0000000000 --- a/std/cmath.hpp +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -// We do not define _USE_MATH_DEFINES - please add your constants below. -#include <cmath> - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif - -using std::abs; -using std::cos; -using std::isfinite; -using std::sin; -using std::log10; diff --git a/std/complex.hpp b/std/complex.hpp deleted file mode 100644 index 24a3b26e3a..0000000000 --- a/std/complex.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <complex> - -using std::complex; -using std::polar; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/condition_variable.hpp b/std/condition_variable.hpp deleted file mode 100644 index 4d137e729b..0000000000 --- a/std/condition_variable.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <condition_variable> - -using std::condition_variable; -using std::cv_status; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/cstdarg.hpp b/std/cstdarg.hpp deleted file mode 100644 index 04d5705787..0000000000 --- a/std/cstdarg.hpp +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <cstdarg> - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/cstdio.hpp b/std/cstdio.hpp deleted file mode 100644 index 1fa6b27e6b..0000000000 --- a/std/cstdio.hpp +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -// Correct snprintf support for MSVC. It was finaly implemented in MS Visual Studio 2015. -// Original code: https://github.com/OlehKulykov/jansson/commit/8f2298bad8f77a22efe0dc9a95676fae6c203e36 -#if defined(_WIN32) || defined(WIN32) -# if defined(_MSC_VER) /* MS compiller */ -# if (_MSC_VER < 1900) && !defined(snprintf) /* snprintf not defined yet & not introduced */ -# define snprintf _snprintf -# endif -# if (_MSC_VER < 1500) && !defined(vsnprintf) /* vsnprintf not defined yet & not introduced */ -# define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) -# endif -# else /* Other Windows compiller, old definition */ -# define snprintf _snprintf -# define vsnprintf _vsnprintf -# endif -#endif - -#include <cstdio> - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/cstdlib.hpp b/std/cstdlib.hpp deleted file mode 100644 index e119843d52..0000000000 --- a/std/cstdlib.hpp +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <cstdlib> - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/ctime.hpp b/std/ctime.hpp deleted file mode 100644 index 2d7f9c786f..0000000000 --- a/std/ctime.hpp +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <ctime> - -using std::time; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/deque.hpp b/std/deque.hpp deleted file mode 100644 index a79012c9c9..0000000000 --- a/std/deque.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <deque> -using std::deque; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/errno.hpp b/std/errno.hpp deleted file mode 100644 index 05b935e846..0000000000 --- a/std/errno.hpp +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <cerrno> - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/exception.hpp b/std/exception.hpp deleted file mode 100644 index 8e1d903d6c..0000000000 --- a/std/exception.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <exception> -using std::exception; -using std::logic_error; -using std::runtime_error; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/fstream.hpp b/std/fstream.hpp deleted file mode 100644 index b013c77b58..0000000000 --- a/std/fstream.hpp +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <fstream> -using std::ofstream; -using std::ifstream; -using std::fstream; -using std::ios; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/functional.hpp b/std/functional.hpp deleted file mode 100644 index 6236824d72..0000000000 --- a/std/functional.hpp +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <functional> -using std::equal_to; -using std::function; -using std::greater; -using std::hash; -using std::less; -using std::less_equal; -using std::mem_fn; -using std::ref; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/future.hpp b/std/future.hpp deleted file mode 100644 index 8a72e54dd8..0000000000 --- a/std/future.hpp +++ /dev/null @@ -1,16 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <future> - -using std::async; -using std::future; -using std::future_status; -using std::launch; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/initializer_list.hpp b/std/initializer_list.hpp deleted file mode 100644 index 0e8899b85e..0000000000 --- a/std/initializer_list.hpp +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <initializer_list> -using std::initializer_list; -typedef initializer_list<char const *> StringIL; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/iomanip.hpp b/std/iomanip.hpp deleted file mode 100644 index e7bb2f6e6c..0000000000 --- a/std/iomanip.hpp +++ /dev/null @@ -1,17 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <iomanip> -using std::fixed; -using std::hex; -using std::left; -using std::setfill; -using std::setprecision; -using std::setw; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/ios.hpp b/std/ios.hpp deleted file mode 100644 index 1f767629ed..0000000000 --- a/std/ios.hpp +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <ios> - -using std::ios_base; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/iterator.hpp b/std/iterator.hpp deleted file mode 100644 index a5447e3f9b..0000000000 --- a/std/iterator.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <iterator> - -using std::advance; -using std::back_insert_iterator; -using std::back_inserter; -using std::begin; -using std::distance; -using std::end; -using std::insert_iterator; -using std::inserter; -using std::istream_iterator; -using std::istreambuf_iterator; -using std::iterator_traits; -using std::next; -using std::reverse_iterator; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/map.hpp b/std/map.hpp deleted file mode 100644 index 09d1506277..0000000000 --- a/std/map.hpp +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <map> -using std::map; -using std::multimap; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/msvc_cpp11_workarounds.hpp b/std/msvc_cpp11_workarounds.hpp deleted file mode 100644 index 490762497b..0000000000 --- a/std/msvc_cpp11_workarounds.hpp +++ /dev/null @@ -1,26 +0,0 @@ -// Workarounds to fix C++11 bugs or non-implemented features of MS Visual C++. -// These workarounds are to be done only for older versions of MSVC (and probably -// to be removed after new compiler is widely used). - -#pragma once - -// alignof -#if defined(_MSC_VER) && (_MSC_VER <= 1800) - #define ALIGNOF __alignof -#else - #define ALIGNOF alignof -#endif - -// constexpr -#if defined(_MSC_VER) && (_MSC_VER <= 1800) - #define CONSTEXPR_VALUE const -#else - #define CONSTEXPR_VALUE constexpr -#endif - -// noexcept -#if defined(_MSC_VER) && (_MSC_VER <= 1800) - #define NOEXCEPT_MODIFIER -#else - #define NOEXCEPT_MODIFIER noexcept -#endif diff --git a/std/noncopyable.hpp b/std/noncopyable.hpp deleted file mode 100644 index 0c18ade268..0000000000 --- a/std/noncopyable.hpp +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -// TODO: Mirgate to C++11 technics to disable copying. -#include <boost/noncopyable.hpp> -using boost::noncopyable; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/numeric.hpp b/std/numeric.hpp deleted file mode 100644 index 9fed8f6d37..0000000000 --- a/std/numeric.hpp +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <numeric> -using std::accumulate; -using std::iota; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/random.hpp b/std/random.hpp deleted file mode 100644 index 04ac1483a9..0000000000 --- a/std/random.hpp +++ /dev/null @@ -1,16 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <random> - -using std::default_random_engine; -using std::minstd_rand; -using std::mt19937; -using std::uniform_int_distribution; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/shared_array.hpp b/std/shared_array.hpp deleted file mode 100644 index a1f643284f..0000000000 --- a/std/shared_array.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <boost/shared_array.hpp> -using boost::shared_array; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/stack.hpp b/std/stack.hpp deleted file mode 100644 index da3b807535..0000000000 --- a/std/stack.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <stack> -using std::stack; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/thread.hpp b/std/thread.hpp deleted file mode 100644 index bfb88113ff..0000000000 --- a/std/thread.hpp +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <thread> - -namespace this_thread = std::this_thread; - -using std::thread; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/tuple.hpp b/std/tuple.hpp deleted file mode 100644 index 9e05d40bc4..0000000000 --- a/std/tuple.hpp +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <tuple> - -using std::tuple; -using std::make_tuple; -using std::get; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/type_traits.hpp b/std/type_traits.hpp deleted file mode 100644 index 85a1bf9390..0000000000 --- a/std/type_traits.hpp +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <type_traits> - -using std::conditional; -using std::enable_if; -using std::is_arithmetic; -using std::is_base_of; -using std::is_constructible; -using std::is_convertible; -using std::is_enum; -using std::is_floating_point; -using std::is_integral; -using std::is_pod; -using std::is_same; -using std::is_signed; -using std::is_standard_layout; -using std::is_unsigned; -using std::is_void; -using std::make_signed; -using std::make_unsigned; -using std::remove_reference; -using std::underlying_type; - -using std::result_of; - -using std::false_type; -using std::true_type; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/typeinfo.hpp b/std/typeinfo.hpp deleted file mode 100644 index cb2baaa949..0000000000 --- a/std/typeinfo.hpp +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <typeinfo> - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/unordered_set.hpp b/std/unordered_set.hpp deleted file mode 100644 index 8fb84a9e7b..0000000000 --- a/std/unordered_set.hpp +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <unordered_set> -using std::unordered_set; -using std::unordered_multiset; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif diff --git a/std/weak_ptr.hpp b/std/weak_ptr.hpp deleted file mode 100644 index 76dbc557f2..0000000000 --- a/std/weak_ptr.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#ifdef new -#undef new -#endif - -#include <memory> -using std::weak_ptr; - -#ifdef DEBUG_NEW -#define new DEBUG_NEW -#endif |