/*
This file is a part of libcds - Concurrent Data Structures library
- (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
+ (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
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:
typedef cc::IterableKVList< gc_type, key_type, value_type,
typename cc::iterable_list::make_traits<
cds::opt::less< lt >
+ ,cds::opt::item_counter< cds::atomicity::item_counter >
>::type
> list_type;
typedef cc::IterableKVList< gc_type, key_type, value_type,
typename cc::iterable_list::make_traits<
cds::opt::compare< cmp >
+ , cds::opt::item_counter< cds::atomicity::item_counter >
>::type
> list_type;
typename cc::iterable_list::make_traits<
cds::opt::compare< cmp >
,cds::opt::less< lt >
+ , cds::opt::item_counter< cds::atomicity::item_counter >
>::type
> list_type;
test_hp( l );
}
- TEST_F( IterableKVList_HP, item_counting )
- {
- struct traits : public cc::iterable_list::traits
- {
- typedef lt less;
- typedef cds::atomicity::item_counter item_counter;
- };
- typedef cc::IterableKVList<gc_type, key_type, value_type, traits > list_type;
-
- list_type l;
- test_common( l );
- test_ordered_iterator( l );
- test_hp( l );
- }
-
TEST_F( IterableKVList_HP, backoff )
{
struct traits : public cc::iterable_list::traits