Searched defs:is_const_v (Results 1 - 2 of 2) sorted by relevance

/openbsd-current/gnu/llvm/libcxx/include/__type_traits/
H A Dis_const.h28 inline constexpr bool is_const_v = __is_const(_Tp); variable
/openbsd-current/gnu/llvm/libcxx/include/__format/
H A Dformat_arg.h160 __format_([](basic_format_parse_context<_CharT>& __parse_ctx, _Context& __ctx, const void* __ptr) { using _Dp = remove_cvref_t<_Tp>; using _Formatter = typename _Context::template formatter_type<_Dp>; constexpr bool __const_formattable = requires { _Formatter().format(std::declval<const _Dp&>(), std::declval<_Context&>()); }; using _Qp = conditional_t<__const_formattable, const _Dp, _Dp>; static_assert(__const_formattable || !is_const_v<remove_reference_t<_Tp>>, �); _Formatter __f; __parse_ctx.advance_to(__f.parse(__parse_ctx)); __ctx.advance_to(__f.format(*const_cast<_Qp*>(static_cast<const _Dp*>(__ptr)), __ctx)); }) argument

Completed in 64 milliseconds