s.nKey = 0;
}
- int key() const
- {
- return nKey;
+ int key() const
+ {
+ return nKey;
}
};
}
};
- struct cmp
+ struct cmp
{
int operator()( key_type const& lhs, key_type const& rhs ) const
{
EXPECT_TRUE( l.contains( i.key ));
EXPECT_TRUE( l.contains( list_key_type(i.key)));
EXPECT_TRUE( l.contains( other_key( i.key ), other_less()));
- EXPECT_TRUE( l.find( i.key, []( list_value_type& n ) {
+ EXPECT_TRUE( l.find( i.key, []( list_value_type& n ) {
n.second.val = n.first.nKey;
} ));
EXPECT_TRUE( l.find( i.key, []( list_value_type& n ) {
EXPECT_CONTAINER_SIZE( l, 0 );
// clear test
- for ( auto& i : arr )
+ for ( auto& i : arr )
EXPECT_TRUE( l.insert( i.key, i.val ));
ASSERT_FALSE( l.empty() );