Subject | Hash | Author | Date (UTC) |
---|---|---|---|
rarray::iterator_index function | 7ee95c6b048973f209fc4e365af36a3dcdb06c4b | Jackalope | 2020-05-26 08:58:20 |
darray::remove_last_if_exist logic fix | 1664bbfba9d4d8098542c8138a548e4377304aa6 | Jackalope | 2020-05-26 08:55:31 |
remove float convertion warning | 1ea4783034b873f7711e2ecf840955818c07bcd0 | Jackalope | 2020-05-26 08:54:04 |
threads refactoring | 9b03fd0beb928de9f3f3e492bb1d324356152de3 | Jackalope | 2020-05-26 08:52:26 |
changed notice about native compilation | 7b48919f0f46df08f14c8a867d7d1c5d14c19efb | Jackalope | 2020-05-24 16:37:16 |
remove LTO option | a95b60656c6c00d64efd769d5047853315964556 | Jackalope | 2020-05-24 13:39:59 |
compiler options and optimizations | 92bc2d91c14c58ce630a7f4f400b5d076ac03286 | Jackalope | 2020-05-24 01:16:59 |
cpu_number return unsigned int | b9c11a1b4474747c313957bef5573d1db6c481ff | Jackalope | 2020-05-24 00:13:29 |
ThreadPool moved to jl namespace, same for cpu_number function | 2e486f0d57347197a875abe79b4c637e7c925ecc | Jackalope | 2020-05-23 23:26:00 |
removed inline keyword from functions in fs.cpp | 295f11fb3a3f285c5393687675d8dd2c86e726b8 | Jackalope | 2020-05-23 23:25:12 |
make assert constexpr compatible again | 378556f2203439749e7c4003031c3e1de1511f6d | Jackalope | 2020-05-23 23:24:04 |
renamed Doxygen options | cbda01d11706d12d842d088e917dd3e7866689a2 | Jackalope | 2020-05-23 23:23:30 |
Updated license notice | 0d013874b3eca0e34ad14cbb4dc4aa7628549a4b | Jackalope | 2020-05-23 22:52:50 |
Moved some implementation to library obj target | 43b7241f3ded0b0b049d15bf337dac6b25b577e6 | Jackalope | 2020-05-23 22:44:45 |
CMake documentation target | 8ab15abc55ba97919ffa4b07bdf9389b0ff57a24 | Jackalope | 2020-05-23 21:19:36 |
CMake install target with version control | 9e7aaf56c9c3cae628cc8dc35ded5fec49d414b2 | Jackalope | 2020-05-23 21:10:32 |
added read whole TEXT file func also (only binary was before) | d70894b97e0760c85fa03bf802d36a840d331bc9 | Jackalope | 2020-05-20 19:05:49 |
Changed cmake library interface | 0b4c87b296597ae929dc1038e9eefbf155250fa7 | Jackalope | 2020-05-12 06:57:42 |
added byte_array and byte_array_ro typedefs | 902916f777983eba78d325e9f9c9c01bd2502ca3 | Jackalope | 2020-05-11 07:47:33 |
remove _BIT postfix from file opening flags | 1cf92db6ccb85c2ac0ed7f86fbdfeac97745bd45 | Jackalope | 2020-05-11 07:46:51 |
File | Lines added | Lines deleted |
---|---|---|
include/jlib/rarray.h | 8 | 0 |
File include/jlib/rarray.h changed (mode: 100644) (index 4a06d15..413c08a) | |||
... | ... | struct jl::rarray | |
240 | 240 | jassert(p_end_allocated >= p_begin, "corruption detected"); | jassert(p_end_allocated >= p_begin, "corruption detected"); |
241 | 241 | return rarray<const T> { p_begin, p_end_allocated }; | return rarray<const T> { p_begin, p_end_allocated }; |
242 | 242 | } | } |
243 | /// @brief Get index of iterator. | ||
244 | /// @param p pointer in range [begin;end). | ||
245 | /// @return Index of an item on iterator position. | ||
246 | [[nodiscard]] size_t iterator_index(T *p) { | ||
247 | jassert(p >= p_begin and p < p_end_allocated, | ||
248 | "iterator must be in the range [begin,end)"); | ||
249 | return p - p_begin; | ||
250 | } | ||
243 | 251 | protected: | protected: |
244 | 252 | [[nodiscard]] bool resize_bytes(size_t new_size) { | [[nodiscard]] bool resize_bytes(size_t new_size) { |
245 | 253 | jassert(new_size, "cannot be 0"); | jassert(new_size, "cannot be 0"); |