summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/internal/gtest-port.h
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2019-08-29 14:52:57 (GMT)
committerGennadiy Civil <misterg@google.com>2019-08-29 14:52:57 (GMT)
commit565f1b848215b77c3732bca345fe76a0431d8b34 (patch)
tree6aed73843867188d7b244554186c89425831b99f /googletest/include/gtest/internal/gtest-port.h
parenta648da952b793411b111af90db42a590270c5801 (diff)
parente2c06aa2497e330bab1c1a03d02f7c5096eb5b0b (diff)
downloadgoogletest-565f1b848215b77c3732bca345fe76a0431d8b34.zip
googletest-565f1b848215b77c3732bca345fe76a0431d8b34.tar.gz
googletest-565f1b848215b77c3732bca345fe76a0431d8b34.tar.bz2
Merge pull request #2398 from kuzkry:custom-type-traits-iterator_traits
PiperOrigin-RevId: 266136896
Diffstat (limited to 'googletest/include/gtest/internal/gtest-port.h')
-rw-r--r--googletest/include/gtest/internal/gtest-port.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h
index a637602..830aa19 100644
--- a/googletest/include/gtest/internal/gtest-port.h
+++ b/googletest/include/gtest/internal/gtest-port.h
@@ -202,11 +202,6 @@
// Mutex, MutexLock, ThreadLocal, GetThreadCount()
// - synchronization primitives.
//
-// Template meta programming:
-// IteratorTraits - partial implementation of std::iterator_traits, which
-// is not available in libCstd when compiled with Sun C++.
-//
-//
// Regular expressions:
// RE - a simple regular expression class using the POSIX
// Extended Regular Expression syntax on UNIX-like platforms
@@ -1901,22 +1896,6 @@ GTEST_API_ size_t GetThreadCount();
template <bool B>
using bool_constant = std::integral_constant<bool, B>;
-template <typename Iterator>
-struct IteratorTraits {
- typedef typename Iterator::value_type value_type;
-};
-
-
-template <typename T>
-struct IteratorTraits<T*> {
- typedef T value_type;
-};
-
-template <typename T>
-struct IteratorTraits<const T*> {
- typedef T value_type;
-};
-
#if GTEST_OS_WINDOWS
# define GTEST_PATH_SEP_ "\\"
# define GTEST_HAS_ALT_PATH_SEP_ 1