Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove DEF_NEWDEL | Chris Robinson | 2023-12-16 | 1 | -13/+0 |
| | | | | | C++17 provides alignment-aware allocators for us, so we don't need to use our own to make sure classes/structs are properly aligned. | ||||
* | Remove unnecessary macro parameter lists | Chris Robinson | 2023-12-15 | 1 | -5/+5 |
| | |||||
* | Refactor FlexArray | Chris Robinson | 2023-12-10 | 1 | -116/+0 |
| | | | | | This avoids using an array of 1 as a flexible array member, and instead uses a span to reference the memory after itself. | ||||
* | Fix some clang-tidy warnings | Chris Robinson | 2023-12-08 | 1 | -28/+28 |
| | |||||
* | Compile with c++20 support (#920) | Deal | 2023-09-25 | 1 | -1/+3 |
| | | | | | * Compile with c++20 support * Update CMakeLists.txt | ||||
* | Use some more standard functions | Chris Robinson | 2023-05-05 | 1 | -68/+3 |
| | |||||
* | Don't try to use std::pointer_traits::to_address | Chris Robinson | 2023-01-30 | 1 | -21/+2 |
| | |||||
* | Try to fix has_to_address | Chris Robinson | 2023-01-30 | 1 | -3/+7 |
| | |||||
* | Don't pass an unnecessarily large alignment to allocator::rebind | Chris Robinson | 2023-01-30 | 1 | -2/+4 |
| | |||||
* | Use std::pointer_traits::to_address when available | Chris Robinson | 2023-01-29 | 1 | -1/+16 |
| | |||||
* | Better handle span sources from iterators | Chris Robinson | 2022-12-14 | 1 | -0/+12 |
| | |||||
* | Check the container type given to DEF_NEWDEL and DEF_FAM_NEWDEL | Chris Robinson | 2022-05-16 | 1 | -3/+7 |
| | | | | | | | There's apparently no way to get the containing class/struct type from a static member function, and operator new/delete are implicitly static member functions so the macros to define them need to be told the type to allocate for. This ensures the type specified matches the containing type. | ||||
* | Move assume_aligned to opthelpers.h and define force_inline | Chris Robinson | 2022-03-30 | 1 | -36/+0 |
| | |||||
* | Avoid a variable to subscript an array in offsetof | Chris Robinson | 2022-03-26 | 1 | -2/+8 |
| | |||||
* | Try to improve assume_aligned for other compilers | Chris Robinson | 2022-03-25 | 1 | -2/+35 |
| | |||||
* | Simplify a couple offsetof statements | Chris Robinson | 2022-03-24 | 1 | -10/+4 |
| | |||||
* | Remove an unnecessary noexcept | Chris Robinson | 2021-10-23 | 1 | -7/+4 |
| | |||||
* | Add more noexcept | Chris Robinson | 2021-10-14 | 1 | -8/+8 |
| | |||||
* | Properly noexcept the destroy methods | Chris Robinson | 2021-10-14 | 1 | -5/+6 |
| | |||||
* | Make a construct_at method amd use it | Chris Robinson | 2021-10-08 | 1 | -1/+6 |
| | |||||
* | Add the gnu::malloc attribute to al_malloc and al_calloc | Chris Robinson | 2021-10-07 | 1 | -2/+4 |
| | | | | | | This helps the compiler know the returned pointer won't alias another pointer or existing object, since it's a fresh allocation, and is unlikely to return nullptr. | ||||
* | Remove some unnecessary function attributes | Chris Robinson | 2021-01-23 | 1 | -4/+4 |
| | | | | | | | | The alloc_size was wrong anyway since the function parameter takes the number of objects to be allocated and the attribute declares which is the number of bytes. The assume_aligned is unnecessary since the function is inlined and al_malloc/al_calloc already have appropriate attributes for the compiler to see. | ||||
* | Make FlexArray trivially destructible when possible | Chris Robinson | 2020-12-27 | 1 | -42/+89 |
| | |||||
* | Ensure enough space is allocated for structs with a FlexArray | Chris Robinson | 2020-08-15 | 1 | -1/+4 |
| | |||||
* | Avoid a zero-length array for the FlexArray definition | Chris Robinson | 2020-08-15 | 1 | -5/+4 |
| | | | | | | Newer GCCs are warning about FlexArray being used at the end of another struct. Though not the most ideal to always allocate space for at least 1 element, actual 0-sized uses are rare and for smaller element types. | ||||
* | Use an enum for FamCount | Chris Robinson | 2020-05-19 | 1 | -3/+3 |
| | |||||
* | Apply some alloc and alignment attributes | Chris Robinson | 2020-04-10 | 1 | -16/+4 |
| | |||||
* | Make a default/empty constructor noexcept | Chris Robinson | 2020-04-09 | 1 | -1/+1 |
| | |||||
* | Remove some unused functions | Chris Robinson | 2020-03-23 | 1 | -64/+3 |
| | |||||
* | Add a macro to disable class-specific new/delete | Chris Robinson | 2020-03-23 | 1 | -0/+6 |
| | |||||
* | Properly define the new[] and delete[] operators | Chris Robinson | 2020-03-22 | 1 | -3/+10 |
| | |||||
* | Avoid some pre-C++14 workarounds | Chris Robinson | 2020-03-22 | 1 | -8/+0 |
| | |||||
* | Fix some 'ambiguous' calls for newer MSVC | Chris Robinson | 2020-01-06 | 1 | -6/+6 |
| | |||||
* | Ensure a pointer is provided for a templated iterator type | Chris Robinson | 2020-01-05 | 1 | -2/+2 |
| | |||||
* | Put the pragma defines in a separate header | Chris Robinson | 2019-10-07 | 1 | -19/+4 |
| | |||||
* | Add some allocator fields GCC 6.3 seems to want | Chris Robinson | 2019-10-01 | 1 | -0/+6 |
| | |||||
* | Work around MSVC's lack of standard _Pragma support | Chris Robinson | 2019-09-18 | 1 | -7/+7 |
| | |||||
* | Silence a couple specific warning instances | Chris Robinson | 2019-09-18 | 1 | -0/+27 |
| | |||||
* | Don't use [[nodiscard]] in C++11 | Chris Robinson | 2019-09-12 | 1 | -5/+5 |
| | | | | To silence some warnings in older compilers, and fix an error with newer MSVC. | ||||
* | Fix allocator comparison operators | Chris Robinson | 2019-09-11 | 1 | -4/+4 |
| | |||||
* | Simplify flexible array member usage | Chris Robinson | 2019-09-11 | 1 | -2/+18 |
| | |||||
* | Don't inherit for the allocator | Chris Robinson | 2019-09-11 | 1 | -22/+18 |
| | |||||
* | Add a Create method to FlexArray for "raw" arrays | Chris Robinson | 2019-08-03 | 1 | -0/+5 |
| | |||||
* | Cleanup common sources' includes | Chris Robinson | 2019-07-29 | 1 | -4/+7 |
| | |||||
* | Add C++17-like uninitialized_move methods | Chris Robinson | 2019-07-01 | 1 | -0/+43 |
| | |||||
* | Add an empty() method to FlexArray | Chris Robinson | 2019-06-29 | 1 | -2/+2 |
| | |||||
* | Fix ambiguous calls to destroy_at | geneotech | 2019-06-21 | 1 | -2/+2 |
| | |||||
* | Use a FlexArray for the context's voices | Chris Robinson | 2019-06-09 | 1 | -1/+1 |
| | |||||
* | Add and use proper types for FlexArray | Chris Robinson | 2019-06-07 | 1 | -20/+43 |
| | |||||
* | Remove a couple unused functions | Chris Robinson | 2019-06-06 | 1 | -8/+0 |
| |