Tobias Loew
a47234cc1c
fixed container_rebind for small_vector with options
...
container_rebind did not compile for small_vector when options are used
2020-09-02 07:24:04 +02:00
Ion Gaztañaga
3da7877dc0
Fixes #158 (".bak file in git")
2020-08-31 22:23:25 +02:00
Ion Gaztañaga
cdd6d9ad8a
Fixes #160 ("Usage of uses_allocator needs a remove_cvref_t")
2020-08-31 22:21:41 +02:00
Ion Gaztañaga
0b297019ec
Fixes #161 : ("polymorphic_allocator(memory_resource*) non-standard extension causes headache")
2020-08-31 13:37:11 +02:00
Ion Gaztañaga
438813726b
Add BOOST_CONTAINER_FORCEINLINE to trivial operations.
2020-08-31 13:36:46 +02:00
Lucas Camolezi
2f9f3831ef
Add missing include
...
Allow this header file to be built standalone, in a clang C++ modules context.
2020-08-25 15:15:59 -03:00
Ion Gaztañaga
5a52472cd0
Make a different version for single value proxies in priv_insert_forward_range_expand_forward and force-inline only that version
2020-08-11 23:50:47 +02:00
Ion Gaztañaga
5d100cb45f
Add BOOST_CONTAINER_FORCEINLINE to trivial functions
2020-08-11 23:50:08 +02:00
Ion Gaztañaga
c2a4ed70d9
Avoid unsigned underflow, legal but flagged as suspicious by several tools.
2020-08-11 23:49:48 +02:00
Ion Gaztañaga
fb88180001
- Change priv_insert_forward_range_expand_forward position to raw pointer to be more homogeneous with the rest of similar functions.
...
- Remove some unused variable warnings due to BOOST_IF_CONSTEXPR additions.
2020-08-10 11:18:36 +02:00
Ion Gaztañaga
ebcd0222b4
Integrate and adapt "devector's", from Thaler Benedek's implementation.
2020-08-10 00:16:58 +02:00
Ion Gaztañaga
844b779a7d
Clean-up insertion code and speed upt single value insertion for proxies having that trait.
2020-08-10 00:02:26 +02:00
Ion Gaztañaga
bff516315b
Add BOOST_CONTAINER_FORCEINLINE to more trivial functions
2020-08-10 00:00:51 +02:00
Ion Gaztañaga
e02b5c9bde
Add "back_free_capacity" utility
2020-08-09 23:54:52 +02:00
Ion Gaztañaga
d271c6384d
Use "set_stored_size" to avoid conversion warnings when updating member "stored_size_type types.
2020-08-09 23:54:24 +02:00
Ion Gaztañaga
c48edfe7bd
Reenabled the following warnings in MSVC to detect errors in the implementation:
...
4244 // possible loss of data
4267 // conversion from "X" to "Y", possible loss of data
4702 // unreachable code
2020-08-09 23:49:15 +02:00
Ion Gaztañaga
978f1c426d
Generalize "clamp_by_stored_size_type" to be able to reuse it in other containers
2020-08-09 23:47:41 +02:00
Ion Gaztañaga
cc51aa2e49
Add BOOST_CONTAINER_FORCEINLINE to trivial functions and add is_single_value_proxy attribute to single value proxies. This trait can be used by insertion functions to optimize operations at compile time.
2020-08-09 23:45:13 +02:00
Ion Gaztañaga
4eb93761db
Fix "-Wdeprecated-copy" warnings
2020-08-09 23:28:07 +02:00
Ion Gaztañaga
c08ead7f4b
Add BOOST_CONTAINER_DISABLE_NOINLINE
2020-08-09 23:27:12 +02:00
Ion Gaztañaga
e0c7cb99b3
Fix possible unsigned underflow warnings.
2020-08-09 23:26:34 +02:00
Ion Gaztañaga
716ade8e56
Add BOOST_CONTAINER_FORCEINLINE to destroyers' trivial functions
2020-08-09 23:25:31 +02:00
Ion Gaztañaga
06417de498
Fixes #125 ("flat_map doc misleading complexity").
2020-07-13 12:31:58 +02:00
Ion Gaztañaga
2d9d28b81e
Fixed #128 ("moved from small_vector and static_vector calls destructor on elements in static part")
2020-07-12 13:48:38 +02:00
Ion Gaztañaga
069351adfc
Fixes #126 ("flat_set.hpp and set.hpp in pmr have the same header guard")
2020-07-12 12:53:47 +02:00
Ion Gaztañaga
98b59db5fd
Fixes #149 : ("InitializeCriticalSectionEx returns "BOOL" (int)")
2020-07-12 12:44:31 +02:00
Ion Gaztañaga
5d8e008c50
Fix initializer_list contructor allocation count
2020-07-12 11:05:34 +02:00
Ion Gaztañaga
80d742f860
Added C++03 portable aliases and tests. Fixes #129 ("Alias templates for small_flat_[multi]{set|map} using small_vector as container")
2020-05-25 01:50:23 +02:00
Ion Gaztañaga
8b8a0c05a5
Merge branch 'develop' of https://github.com/tobias-loew/container into tobias-loew-develop
2020-05-25 01:04:55 +02:00
Ion Gaztañaga
f9340421da
Merge branch 'develop' of https://github.com/eldiener/container into eldiener-develop
2020-05-25 00:36:06 +02:00
Ion Gaztañaga
52b9ae0e68
Fixes #145 ("Allocations not handled correctly in some cases of vector move with unequal allocators")
2020-05-25 00:35:07 +02:00
Ion Gaztañaga
649d6d0478
Add BOOST_CONTAINER_FORCEINLINE in more places
2020-05-25 00:14:15 +02:00
Eugene Zelenko
811dc94bb4
Use BOOST_OVERRIDE to fix GCC -Wsuggest-override and Clang-tidy modernize-use-override warnings.
2020-05-08 09:28:49 -07:00
Edward Diener
cc5c59c7a5
Inline friend function definitions for exported/imported classes must become declarations and inline definitions outside the class for Embarcadero C++ clang-based compilers. This bug has been reported to Embarcadero.
2020-04-24 15:10:57 -04:00
Ion Gaztañaga
756c4cdc6a
Fixed #142 ("memset called with null pointer")
2020-02-14 05:13:50 +01:00
Ion Gaztañaga
7db26b7446
Merge branch 'feature/plus_zero' of https://github.com/RobertLeahy/container into RobertLeahy-feature/plus_zero
2020-01-14 16:09:30 +01:00
Robert Leahy
d4a0917821
RandomAccessIterator + 0
...
Previously the iterators of boost::container::deque would assert when
zero was added to them in at least the following situations:
- The iterator was obtained by a call to boost::container::deque::begin
and boost::container::deque::empty returns true
- The iterator was default constructed
This is inconsistent with the way in which the iterators of boost::
container::deque have behaved historically and is also inconsistent
with an understanding of iterators developed by analogy with pointers:
- Adding zero to a null pointer is valid despite the fact the null
pointer cannot be dereferenced
- Adding zero to a pointer that is one past the end yields a pointer
which is still one past the end and thus which has well defined
semantics
Fixed this issue and codified the expected behavior in unit tests.
2019-12-22 20:03:57 -05:00
Robert Leahy
ac51b5b6d2
detail/value_functors.hpp: Add Namespacing
...
value_less and value_equal are now boost::container::value_less &
boost::container::value_equal respectively.
2019-12-22 18:10:39 -05:00
Ion Gaztañaga
27c1fea452
Fixes #136 ("List of non BOOST-prefixed macros")
2019-12-19 05:29:46 +01:00
Bo Rydberg
f7409fd6ed
Missing BOOST_NORETURN for user defined functions
...
BOOST_NORETURN is missing for the interface of the throwning methods when BOOST_CONTAINER_USER_DEFINED_THROW_CALLBACKS is defined. Without them you can get a `'noreturn' function does return` warning from g++ at `boost/container/static_vector.hpp:46:4`.
2019-12-05 10:14:58 +01:00
Ion Gaztañaga
e3f6dc44ad
Fixes #127 ("Fix docs for static_vector::max_size() and capacity()")
2019-11-14 23:36:05 +01:00
Ion Gaztañaga
79ae525967
Fixes #133 ("basic_string move constructor with allocator argument has incorrect allocator check")
2019-11-14 15:25:22 +01:00
Ion Gaztañaga
1cf19898c0
Fixes #132 : flat_map::lower_bound and upper_bound have wrong/misleading docs
2019-10-19 22:55:46 +02:00
Tobias Loew
4b2ee268cc
alias templates for small_flat_[multi]{set|map} using small_vector as container
...
alias templates for small_flat_[multi]{set|map} using small_vector as container
guarded by #ifndef BOOST_NO_CXX11_TEMPLATE_ALIASES
2019-09-12 15:07:36 +02:00
Ion Gaztañaga
d9341ec394
Fix "count" with heterogeneous lookups in flat_map and flat_set
2019-06-22 11:41:05 +02:00
Ion Gaztañaga
0c95d4846f
Fix "count" with heterogeneous lookups in flat_map and flat_set
2019-06-22 10:26:36 +02:00
Jan Eisenhauer
3319fdb0c2
Merge remote-tracking branch 'origin/develop' into patch-1
2019-06-11 11:05:29 +02:00
Jan Eisenhauer
699b1e966d
With heterogeneous lookup, equal_range can result in a range with length greater than 1.
2019-06-07 11:55:15 +02:00
Jan Eisenhauer
8376286aa6
With heterogeneous lookup, equal_range can result in a range with length greater than 1.
2019-06-07 11:52:44 +02:00
Mitsuru Kariya
f25c767a2b
Fix has_trivial_destructor_after_move
...
Most template type parameters 'Allocator' were modified their default type to void since 1.70.0.
These modifications cause has_trivial_destructor_after_move to compile error or yield wrong result.
So, fix them by changing specializations of has_trivial_destructor_after_move.
2019-06-01 22:36:54 +09:00