Lines Matching defs:std
114 ::std::string PrintToString(const T& value);
139 typename std::enable_if<!std::is_convertible<T, Sink>::value,
145 GTEST_API_ std::string AppendUserMessage(const std::string& gtest_msg,
155 // are enabled). We derive it from std::runtime_error, which is for
157 // std::runtime_error inherits from std::exception, many testing
159 class GTEST_API_ GoogleTestFailureException : public ::std::runtime_error {
175 GTEST_API_ std::vector<EditType> CalculateOptimalEdits(
176 const std::vector<size_t>& left, const std::vector<size_t>& right);
179 GTEST_API_ std::vector<EditType> CalculateOptimalEdits(
180 const std::vector<std::string>& left,
181 const std::vector<std::string>& right);
184 GTEST_API_ std::string CreateUnifiedDiff(const std::vector<std::string>& left,
185 const std::vector<std::string>& right,
207 const std::string& expected_value,
208 const std::string& actual_value,
212 GTEST_API_ std::string GetBoolAssertionFailureMessage(
259 std::numeric_limits<RawType>::digits - 1;
393 // We cannot use std::numeric_limits<T>::max() as it clashes with the max()
492 CodeLocation(const std::string& a_file, int a_line)
495 std::string file;
518 typename std::conditional<sizeof(T) != 0, ::testing::Test, void>::type;
614 ::std::make_pair(test_name, CodeLocation(file, line)));
618 bool TestExists(const std::string& test_name) const {
622 const CodeLocation& GetCodeLocation(const std::string& test_name) const {
636 typedef ::std::map<std::string, CodeLocation, std::less<>> RegisteredTestsMap;
663 inline std::string GetPrefixUntilComma(const char* str) {
665 return comma == nullptr ? str : std::string(str, comma);
670 void SplitString(const ::std::string& str, char delimiter,
671 ::std::vector<::std::string>* dest);
677 static std::string GetName(int i) {
688 void GenerateNamesRecursively(internal::None, std::vector<std::string>*, int) {}
691 void GenerateNamesRecursively(Types, std::vector<std::string>* result, int i) {
698 std::vector<std::string> GenerateNames() {
699 std::vector<std::string> result;
720 const std::vector<std::string>& type_names =
729 (std::string(prefix) + (prefix[0] == '\0' ? "" : "/") + case_name +
760 const std::vector<std::string>& =
761 std::vector<std::string>() /*type_names*/) {
781 const std::vector<std::string>& type_names =
784 std::string test_name =
818 const std::vector<std::string>& =
819 std::vector<std::string>() /*type_names*/) {
824 // Returns the current OS stack trace as an std::string.
834 GTEST_API_ std::string GetCurrentOsStackTraceExceptTop(int skip_count);
854 // Helper for declaring std::string within 'if' statement
859 explicit TrueWithString(const std::string& str) : value(str) {}
861 std::string value;
889 typename std::remove_const<typename std::remove_reference<T>::type>::type
893 // that return std::string.
898 static auto CheckDebugString(C*) -> typename std::is_same<
899 std::string, decltype(std::declval<const C>().DebugString())>::type;
901 static std::false_type CheckDebugString(...);
904 static auto CheckShortDebugString(C*) -> typename std::is_same<
905 std::string, decltype(std::declval<const C>().ShortDebugString())>::type;
907 static std::false_type CheckShortDebugString(...);
946 class Iterator = decltype(::std::declval<const C&>().begin()),
947 class = decltype(::std::declval<const C&>().end()),
948 class = decltype(++::std::declval<Iterator&>()),
949 class = decltype(*::std::declval<Iterator>()),
987 struct IsRecursiveContainerImpl<C, false> : public std::false_type {};
995 using value_type = decltype(*std::declval<typename C::const_iterator>());
997 std::is_same<typename std::remove_const<
998 typename std::remove_reference<value_type>::type>::type,
1133 static_assert(!std::is_const<Element>::value, "Type must not be const");
1134 static_assert(!std::is_reference<Element>::value,
1158 // Backport of std::index_sequence.
1176 // Backport of std::make_index_sequence.
1230 : value(std::forward<Arg>(t)) {}
1245 std::forward<Args>(args))... {}
1258 auto Apply(F&& f) -> decltype(std::forward<F>(f)(this->Get<Idx>()...)) {
1259 return std::forward<F>(f)(Get<Idx>()...);
1263 auto Apply(F&& f) const -> decltype(std::forward<F>(f)(this->Get<Idx>()...)) {
1264 return std::forward<F>(f)(Get<Idx>()...);
1268 // Analog to std::tuple but with different tradeoffs.
1270 // elements than std::tuple would. std::tuple has been seen to require an
1288 : FlatTuple::FlatTupleBase(tag, std::forward<Args>(args)...) {}
1324 namespace std {
1334 : std::integral_constant<size_t, sizeof...(Ts)> {};
1338 } // namespace std
1392 std::string { "an std::exception-derived error" }
1397 catch (typename std::conditional< \
1398 std::is_same<typename std::remove_cv<typename std::remove_reference< \
1400 std::exception>::value, \
1401 const ::testing::internal::NeverThrown&, const std::exception&>::type \
1448 catch (std::exception const& e) { \