Specialize std::swap() for NoteData in terms of NoteData::swap() so that swap( a, b ) takes constant time.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user