Changeset b7cc0a9 in mainline
- Timestamp:
- 2018-07-05T21:41:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 349b0f7
- Parents:
- 0fe0f32
- git-author:
- Dzejrou <dzejrou@…> (2018-05-14 17:55:53)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/set.hpp
r0fe0f32 rb7cc0a9 62 62 using difference_type = ptrdiff_t; 63 63 64 using node_type = aux::rbtree_single_node<value_type>; 65 64 66 /** 65 67 * Note: Both the iterator and const_iterator (and their local variants) … … 68 70 */ 69 71 using iterator = aux::rbtree_const_iterator< 70 value_type, const_reference, const_pointer, size_type 72 value_type, const_reference, const_pointer, size_type, node_type 71 73 >; 72 74 using const_iterator = iterator; … … 341 343 template<class K> 342 344 iterator find( 343 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 345 const K& key, 346 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 344 347 ) 345 348 { … … 349 352 template<class K> 350 353 const_iterator find( 351 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 354 const K& key, 355 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 352 356 ) const 353 357 { … … 362 366 template<class K> 363 367 size_type count( 364 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 368 const K& key, 369 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 365 370 ) const 366 371 { … … 380 385 template<class K> 381 386 iterator lower_bound( 382 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 387 const K& key, 388 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 383 389 ) 384 390 { … … 388 394 template<class K> 389 395 const_iterator lower_bound( 390 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 396 const K& key, 397 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 391 398 ) const 392 399 { … … 406 413 template<class K> 407 414 iterator upper_bound( 408 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 415 const K& key, 416 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 409 417 ) 410 418 { … … 414 422 template<class K> 415 423 const_iterator upper_bound( 416 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 424 const K& key, 425 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 417 426 ) const 418 427 { … … 432 441 template<class K> 433 442 pair<iterator, iterator> equal_range( 434 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 443 const K& key, 444 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 435 445 ) 436 446 { … … 440 450 template<class K> 441 451 pair<const_iterator, const_iterator> equal_range( 442 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 452 const K& key, 453 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 443 454 ) const 444 455 { … … 451 462 key_compare, allocator_type, size_type, 452 463 iterator, const_iterator, 453 aux::rbtree_single_policy 464 aux::rbtree_single_policy, node_type 454 465 >; 455 466 … … 532 543 using difference_type = ptrdiff_t; 533 544 545 using node_type = aux::rbtree_multi_node<value_type>; 546 534 547 /** 535 * Note: Both the iterator and const_iterator (and their local variants)536 * types are constantiterators, the standard does not require them548 * Note: Both the iterator and const_iterator types are constant 549 * iterators, the standard does not require them 537 550 * to be the same type, but why not? :) 538 551 */ 539 552 using iterator = aux::rbtree_const_iterator< 540 value_type, const_reference, const_pointer, size_type 553 value_type, const_reference, const_pointer, size_type, node_type 541 554 >; 542 555 using const_iterator = iterator; … … 811 824 template<class K> 812 825 iterator find( 813 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 826 const K& key, 827 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 814 828 ) 815 829 { … … 819 833 template<class K> 820 834 const_iterator find( 821 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 835 const K& key, 836 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 822 837 ) const 823 838 { … … 832 847 template<class K> 833 848 size_type count( 834 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 849 const K& key, 850 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 835 851 ) const 836 852 { … … 850 866 template<class K> 851 867 iterator lower_bound( 852 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 868 const K& key, 869 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 853 870 ) 854 871 { … … 858 875 template<class K> 859 876 const_iterator lower_bound( 860 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 877 const K& key, 878 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 861 879 ) const 862 880 { … … 876 894 template<class K> 877 895 iterator upper_bound( 878 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 896 const K& key, 897 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 879 898 ) 880 899 { … … 884 903 template<class K> 885 904 const_iterator upper_bound( 886 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 905 const K& key, 906 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 887 907 ) const 888 908 { … … 902 922 template<class K> 903 923 pair<iterator, iterator> equal_range( 904 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 924 const K& key, 925 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 905 926 ) 906 927 { … … 910 931 template<class K> 911 932 pair<const_iterator, const_iterator> equal_range( 912 enable_if_t<aux::is_transparent_v<key_compare>, const K&> key 933 const K& key, 934 enable_if_t<aux::is_transparent_v<key_compare>, K>* = nullptr 913 935 ) const 914 936 { … … 921 943 key_compare, allocator_type, size_type, 922 944 iterator, const_iterator, 923 aux::rbtree_multi_policy 945 aux::rbtree_multi_policy, node_type 924 946 >; 925 947
Note:
See TracChangeset
for help on using the changeset viewer.