Commit Graph

147 Commits

Author SHA1 Message Date
Ion Gaztañaga
f71fee5140 Merge branch 'inspection_report' of https://github.com/zerotypos-found/container into zerotypos-found-inspection_report 2017-01-12 14:53:20 +01:00
Ion Gaztañaga
79f5977688 Fixes Ticket #12749 container::pmr::polymorphic_allocator compilation error 2017-01-12 14:49:31 +01:00
Ion Gaztañaga
c0ccad469e Add constant for capacity in tests 2017-01-12 14:48:09 +01:00
zerotypos-found
7cb3a6fbe8 [inspection report] remove tabs and fix copyright notice format 2016-12-20 11:03:57 +09:00
Ion Gaztañaga
da17190798 Fix incomplete Trac #9689 ("Add piecewise_construct to boost::container") resolution. scoped_allocator_adaptor_test was missing pair construct overloads. 2016-09-06 14:05:46 +02:00
Ion Gaztañaga
29b16f1697 Add missing test 2016-09-05 14:58:01 +02:00
Ion Gaztañaga
f540b83ccd * Implemented merge operations for associative containers.
* Update tree-based containers to changes done in Intrusive internal utilities in order to fix Trac 12432.
2016-09-03 00:03:42 +02:00
Ion Gaztañaga
0617d0e538 Implemented P0084R2 (Emplace Return Type) 2016-08-29 16:53:44 +02:00
Ion Gaztañaga
4298d1984b * Add missing extract() and insert(node_type) funtion to associative containers.
* Simplify select1st
2016-08-29 00:06:57 +02:00
Ion Gaztañaga
1467c51a4e Implemented missing try_emplace member for maps. 2016-08-26 01:47:32 +02:00
Ion Gaztañaga
db5c24e0e7 Fix piecewise_construct pair constructor for compilers with variadics and constructor forwarding. Current code unconditionally moves instead of forwarding. 2016-08-24 01:52:53 +02:00
Ion Gaztañaga
79a75f470e Add piecewise_construct construction to internal pair. 2016-08-23 02:14:19 +02:00
Ion Gaztañaga
2d6f781a2f Implemented "insert_or_assign" for map-like containers. 2016-08-18 20:29:04 +02:00
Ion Gaztañaga
37c1558a81 Fixed Trac #12256 (set<std::pair<int,int>>::insert cause compilation error in debug configuration in Visual Studio 2012) 2016-08-09 00:59:39 +02:00
Ion Gaztañaga
4122e722a4 Added constant static_vector<>/small_vector::static_capacity to use the configured capacity in constant expressions. 2016-08-03 00:18:11 +02:00
Ion Gaztañaga
7e232bbc19 Fully qualified "unique" call to avoid ADL ambiguities with some older compilers. 2016-06-28 11:53:13 +02:00
Ion Gaztañaga
36f5aa842b Remove some instantiations to avoid hitting section limits when compiling with GCC. 2016-06-25 11:20:11 +02:00
Ion Gaztañaga
fcaf422092 Disable ADL for as_const, it triggers ambiguities in VC14 2016-06-25 11:19:32 +02:00
Ion Gaztañaga
e707b671fd Simplify tests to support old gcc 4.2 compilers 2016-06-25 11:05:40 +02:00
Ion Gaztañaga
b8a06a24d5 Comment typo and tab 2016-05-13 22:17:23 +02:00
Ion Gaztañaga
310d8eaf10 Fixed Trac #11957: "static_vector::max_size() is higher than the capacity" 2016-02-24 14:45:44 +01:00
Ion Gaztañaga
a7158c7975 Fixed Trac #12014: "boost::container::set can not insert const (ref) range" 2016-02-24 10:13:07 +01:00
Ion Gaztañaga
33b331da38 Reduce redundant instantiations to improve test build times 2016-02-23 13:29:46 +01:00
Ion Gaztañaga
e6182f025c Reduce bench constants for debug modes 2016-02-23 13:29:15 +01:00
Ion Gaztañaga
b436c91590 Fix Trac #11866: small_vector does not have range constructor. Added all missing constructors to small vector 2015-12-25 13:27:30 +01:00
Ion Gaztañaga
211c474eb4 small_vector was not being tested in some places due to copy-paste error. 2015-12-25 13:27:06 +01:00
Ion Gaztañaga
01deaa2de0 Use internal typedef when passing allocator as argument. 2015-12-25 13:26:20 +01:00
Ion Gaztañaga
e50751a42c Use lightweight_test instead of returns to improve error reports. Fix use-after-destroy bug in test. 2015-12-25 13:25:17 +01:00
Ion Gaztañaga
641d1a5d5a small_vector: Added copy/move constructor/assignments from small_vector_base 2015-12-24 13:46:00 +01:00
Ion Gaztañaga
743e60a2d3 Revert some unneeded changes for GCC 3.4. 2015-10-12 22:13:09 +02:00
Ion Gaztañaga
7764e05444 Changes to support GCC 3.4 2015-10-12 18:51:08 +02:00
Ion Gaztañaga
3f4a5dec6e Add some C++1 missing functions to string and a couple of debug assertions 2015-09-18 14:38:38 +02:00
Ion Gaztañaga
f1f97518d3 Fixed Track #11627 and #11628 2015-09-09 09:48:09 +02:00
Ion Gaztañaga
33d2f0f7af Add Polymorphic Memory Resource utilities and rework the separately compiled library:
- Dlmalloc's based C function are boost_cont_xxx no longer exported, but wrapped into C++ linkage dlmalloc_xxx functions to effectively reuse Boost's dynamic library and autolink machinery instead of rewriting machinery to compile the C source file.
- Refactored scoped_allocator_adaptor's construct logic as it was shared with polymorphic allocator's one. Moved common logic to detail/dispatch_uses_allocator.hpp. Refactored also scoped_allocator_adaptor test utilities to be reused with polymorphic_allocator tests.
2015-09-07 19:16:46 +02:00
Ion Gaztañaga
08918078aa Add missing small vector's explicit instantiation test 2015-09-07 18:33:51 +02:00
Ion Gaztañaga
ee998fb5b1 Remove uninitialized variable warnings 2015-06-12 23:51:02 +02:00
Ion Gaztañaga
e7bc9f0c6b Use move-aware unique algorithm 2015-06-04 11:43:47 +02:00
Ion Gaztañaga
2ee17d108e Add capacity-related tests 2015-06-04 11:41:29 +02:00
Ion Gaztañaga
e56cfdc8c7 Force invariant checking in tests 2015-06-04 11:41:14 +02:00
Ion Gaztañaga
eb3a7835a1 Uncomment test code 2015-04-14 15:22:15 +02:00
Ion Gaztañaga
6477543f3b Updated to new meta-functions reused from Intrusive/Move 2015-04-14 15:21:46 +02:00
Ion Gaztañaga
d01cb72b3f Add iterator tests 2015-04-14 15:03:19 +02:00
Ion Gaztañaga
e5f069da2b Reenginered partially propagable allocator support in vector. storage_is_unpropagable is now the basic building block, which is simpler and less error-prone. 2015-03-01 22:25:27 +01:00
Ion Gaztañaga
d39b1c143c Add missing initializer list overload taking an additional allocator. 2015-02-28 23:46:08 +01:00
Ion Gaztañaga
8db0f4ad64 small_vector's initializer list constructor was not implemented and tested. 2015-02-28 00:17:46 +01:00
Ion Gaztañaga
6332a9f0bb Fix error with initializer_list test code, list has no "insert_after" 2015-02-28 00:17:05 +01:00
Ion Gaztañaga
1025ad2bbc Reuse vector's initializer_list test code 2015-02-28 00:15:27 +01:00
Ion Gaztañaga
63a83096a8 Add small function to test conversion to small_vector_base 2015-02-27 21:36:43 +01:00
Ion Gaztañaga
7239c8e262 Refactor initializer_list tests to avoid code duplication and add some missing initializer_list overload tests 2015-02-27 19:24:46 +01:00
Ion Gaztañaga
8cdfec7890 Add experimental small_vector class 2015-02-26 00:35:59 +01:00