class $Class_name$
{
public:
explicit $Class_name$();
~$Class_name$();
private:
$end$
};
글 검색 결과
- 2011/01/23 [VA Snippet] class with prompt for name
- 2011/01/23 [VA Snippet] Set, Get Method
- 2011/01/06 functor 관련 snippet
functor 관련 snippet
functor 일반
class fntor$FUNCTOR_NAME$ : public std::unary_function< $ELEMENT_TYPE$, $RETURN_TYPE$ >
{
public:
explicit fntor$FUNCTOR_NAME$() {};
$RETURN_TYPE$ operator() ( const $ELEMENT_TYPE$& elem ) const
{
$end$
}
private:
};
functor this 포인터 포함class fntor$FUNCTOR_NAME$ : public std::unary_function< $ELEMENT_TYPE$, $RETURN_TYPE$ >
{
public:
explicit fntor$FUNCTOR_NAME$( $ClassName$* pThis )
: _pThis( pThis )
{};
$RETURN_TYPE$ operator() ( const $ELEMENT_TYPE$& elem ) const
{
$end$
}
private:
$ClassName$* _pThis;
};
-------------------------
- 이 글의 트랙백 주소
- 이 글에는 트랙백을 보낼 수 없습니다
add
- 댓글 남기기

















