/
githubmirror
/
react-native
Обзор
Документация
Войти
/
githubmirror
/
react-native
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
scripts/cxx-api/tests/snapshots/should_handle_concept/test.h
22 строки
476 B
Jakub Piasecki
Handle concepts in the C++ API snapshot (#55695)
25 фев 2026, 12:12
25 фев 2026, 12:12
f9db851
Код
Авторство
О чём код?
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <any> #include <concepts> namespace test { class CSSSyntaxParser; template <typename T, typename ReturnT = std::any> concept CSSParserSink = requires(CSSSyntaxParser &parser) { { T::consume(parser) } -> std::convertible_to<ReturnT>; }; } // namespace test