Namespaces
Variants

std::meta::is_mutable_member

cppreference.net에서
< cpp | meta
 
 
 
반영 라이브러리
 
반영 타입 및 쿼리
반영 쿼리
반영 레이아웃 쿼리
타입 속성
타입 속성 쿼리
 
헤더에 정의됨 <meta>
consteval bool is_mutable_member( std::meta::info r );
(C++26부터)

반환합니다 true 만약 r 가 가변(mutable) 비정적 데이터 멤버를 나타내는 경우. 그렇지 않으면 반환합니다 false.

매개변수

r - 반영 값

반환값

true 만약 r 가 가변 비정적 데이터 멤버를 나타내는 경우; 그렇지 않으면 false.

예제

#include <meta>

struct A
{
    static int a;
    mutable int b;
};

static_assert(!std::meta::is_mutable_member(^^A::a));
static_assert(std::meta::is_mutable_member(^^A::b));

int main() {}

참조

반영이 비정적 데이터 멤버를 나타내는지 확인합니다
(함수)