namespace std::meta {
consteval bool reference_converts_from_temporary(info type_dst, info type_src);
}
概要
参照への変換が一時オブジェクトを経由するかを判定する。std::reference_converts_from_temporaryに対応する。
戻り値
type_dstの参照がtype_srcからの暗黙変換で一時オブジェクトに束縛される場合にtrueを返す。
例外
type_dstまたはtype_srcが型を表さない場合、std::meta::exception例外を送出する。
例
#include <meta>
#include <string>
int main() {
static_assert(std::meta::reference_converts_from_temporary(
^^const std::string&, ^^const char*));
}
出力
バージョン
言語
- C++26
処理系
- Clang: ??
- GCC: 16 (
-freflectionオプション指定) ✅ - Visual C++: ??