xref: /llvm-project/libcxx/test/std/input.output/string.streams/helper_concepts.h (revision 80f9458cf30d13eef21b09042ea590945c5e64db)
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef TEST_STD_INPUTOUTPUT_STRINGSTREAMS_HELPER_CONCEPTS_H
10 #define TEST_STD_INPUTOUTPUT_STRINGSTREAMS_HELPER_CONCEPTS_H
11 
12 template <typename S, typename T>
requires(S s,const T & sv)13 concept is_valid_argument_for_str_member = requires(S s, const T& sv) {
14   { s.str(sv) };
15 };
16 
17 #endif // TEST_STD_INPUTOUTPUT_STRINGSTREAMS_HELPER_CONCEPTS_H
18