span icon indicating copy to clipboard operation
span copied to clipboard

Implementation of C++20's std::span for older compilers

Results 18 span issues
Sort by recently updated
recently updated
newest added

install cmake config targets and the header only lib tcb::span this fix https://github.com/tcbrindle/span/issues/29

It would be great to have a .natvis file to ease debugging on Visual Studio. Check this: https://stackoverflow.com/questions/58700588/how-can-i-make-my-class-as-debug-friendly-as-stdarray-and-stdvector-in-visua

For the sake of dependency management, it is really nice to have official release version numbers so that I can share with coworkers what version I am using. I would...

Fix for #10 as https://github.com/tcbrindle/span/pull/11 didn't seem to be accepted due to some merge conflicts.

https://github.com/tcbrindle/span/blob/5d8d366eca918d0ed3d2d196cbeae6abfd874736/include/tcb/span.hpp#L133-L137 The implementation has some usings that put reduced names in enclosing namespace scope. If a user `#define`s `TCB_SPAN_NAMESPACE_NAME` to their own, this can have undesired consequences. A different solution...

The internal function contract_violation() shares the same function signature between two different versions, depending on whether TCB_SPAN_THROW_ON_CONTRACT_VIOLATION is defined. This is no problem until multiple translation units are linked together...

* Now using a `TCB_CONSTEXPR` macro instead of `constexpr`, to hook our extra decorations * Decorating `TCB_CONSTEXPR` functions with `__host__ __device__` when compiling CUDA code. Notes: 1. No direct decoration...

Since C++20 has been finalized, [cppreference](https://en.cppreference.com/w/cpp/container/span/span) has updated their section on constructors. Looks like (2) and (3) now use generic iterators instead of concrete pointers and the container constructors have...

Would be great if this was usable as a git-submodule or via CMakes ExternalProject or FetchContent. This requires - a proper target name, e.g. tcspan - a namespaced alias for...