struct LessFunctor
{
int a = 15;
bool operator()(int left, int right) const
{
return left + a < right;
}
};
이게 되더라고..
원래 안되지 않나???
CLASS나 STRUCT에서 저렇게 멤버변수 초기화 가능함??
struct LessFunctor
{
int a = 15;
bool operator()(int left, int right) const
{
return left + a < right;
}
};
이게 되더라고..
원래 안되지 않나???
CLASS나 STRUCT에서 저렇게 멤버변수 초기화 가능함??
c++11부터 가능함
11부터 됨