Specialize std::swap() for NoteData in terms of NoteData::swap() so that swap( a, b ) takes constant time.

This commit is contained in:
Steve Checkoway
2006-07-24 05:58:11 +00:00
parent c72c23f035
commit b9de4e9965
+3
View File
@@ -257,6 +257,9 @@ public:
void LoadFromNode( const XNode* pNode );
};
namespace std {
template<> inline void swap<NoteData>( NoteData &nd1, NoteData &nd2 ) { nd1.swap( nd2 ); }
}
#endif