//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // template // struct iterator_traits // { // }; #include #include "test_macros.h" struct not_an_iterator { }; template struct has_value_type { private: struct two {char lx; char lxx;}; template static two test(...); template static char test(typename U::value_type* = 0); public: static const bool value = sizeof(test(0)) == 1; }; int main(int, char**) { typedef std::iterator_traits It; static_assert(!(has_value_type::value), ""); return 0; }