mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
441 B
36 lines
441 B
#ifndef __FnObjs_h__
|
|
#define __FnObjs_h__
|
|
|
|
|
|
class IsEqLPTSTR
|
|
{
|
|
private:
|
|
|
|
LPCTSTR m_pcsz;
|
|
|
|
public:
|
|
IsEqLPTSTR( LPCTSTR pcsz ) : m_pcsz( pcsz ) { ; }
|
|
bool operator() ( LPCTSTR pcsz )
|
|
{
|
|
return ( 0 == lstrcmp( pcsz, m_pcsz ) );
|
|
}
|
|
|
|
};
|
|
|
|
|
|
template< class T >
|
|
class IsEq
|
|
{
|
|
|
|
const T& m_rT;
|
|
public:
|
|
IsEq( const T& rT ) : m_rT( rT ) { ; }
|
|
|
|
bool operator() ( const T& rT )
|
|
{
|
|
return rT == m_rT;
|
|
}
|
|
};
|
|
|
|
|
|
#endif // __FnObjs_h__
|