Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
// Postcondition: list is empty
static const size_t nSize = 20;
- typedef typename List::key_type list_key_type;
- typedef typename List::mapped_type list_mapped_type;
- typedef typename List::value_type list_value_type;
typedef typename List::guarded_ptr guarded_ptr;
struct key_val {
}
shuffle( arr, arr + nSize );
- ASSERT_TRUE( l.empty() );
+ ASSERT_TRUE( l.empty());
ASSERT_CONTAINER_SIZE( l, 0 );
guarded_ptr gp;
gp->second.val = gp->first.nKey * 10;
++nCount;
- ASSERT_FALSE( l.empty() );
+ ASSERT_FALSE( l.empty());
ASSERT_CONTAINER_SIZE( l, nCount );
}
- ASSERT_FALSE( l.empty() );
+ ASSERT_FALSE( l.empty());
ASSERT_CONTAINER_SIZE( l, nSize );
// extract() test
for ( auto const& i : arr ) {
- ASSERT_FALSE( l.empty() );
+ ASSERT_FALSE( l.empty());
ASSERT_CONTAINER_SIZE( l, nCount );
--nCount;
EXPECT_FALSE( gp );
}
- ASSERT_TRUE( l.empty() );
+ ASSERT_TRUE( l.empty());
ASSERT_CONTAINER_SIZE( l, 0 );
}
};