Comments (6)
Agreed, byte
should be in the detail
namespace
from span.
Note if you missed: byte
is one among many such aliases.
from span.
There's contract_violation()
and (sometimes) struct contract_violation_error
as well as byte
... are there any others? size()
, data()
etc are already in the detail
namespace.
from span.
This is grep -n using
result:
133:using byte = std::byte;
135:using byte = unsigned char;
178:using std::data;
179:using std::size;
219:using std::void_t;
222:using void_t = void;
226:using uncvref_t =
257:using remove_pointer_t = typename std::remove_pointer<T>::type;
292: using storage_type = detail::span_storage<ElementType, Extent>;
296: using element_type = ElementType;
297: using value_type = typename std::remove_cv<ElementType>::type;
298: using size_type = std::size_t;
299: using difference_type = std::ptrdiff_t;
300: using pointer = element_type*;
301: using const_pointer = const element_type*;
302: using reference = element_type&;
303: using const_reference = const element_type&;
304: using iterator = pointer;
305: using reverse_iterator = std::reverse_iterator<iterator>;
414: using subspan_return_t =
606: using type = ElementType;
from span.
This is
grep -n using
result:133:using byte = std::byte; 135:using byte = unsigned char;
Mentioned above.
178:using std::data; 179:using std::size; 219:using std::void_t; 222:using void_t = void; 226:using uncvref_t = 257:using remove_pointer_t = typename std::remove_pointer<T>::type;
These are already in a detail
namespace
292: using storage_type = detail::span_storage<ElementType, Extent>; 296: using element_type = ElementType; 297: using value_type = typename std::remove_cv<ElementType>::type; 298: using size_type = std::size_t; 299: using difference_type = std::ptrdiff_t; 300: using pointer = element_type*; 301: using const_pointer = const element_type*; 302: using reference = element_type&; 303: using const_reference = const element_type&; 304: using iterator = pointer; 305: using reverse_iterator = std::reverse_iterator<iterator>; 414: using subspan_return_t = 606: using type = ElementType;
These are mandated members of span
, except for the subspan_return_t
helper alias, which should probably be private
.
from span.
Looks like there is nothing more then.
from span.
Related Issues (20)
- Support for construction using std::initializer_list<T> HOT 1
- Does not compile with span of bool type HOT 7
- span.hpp should include <iterator> and <tuple> HOT 3
- Allow usage as submodule HOT 2
- p1872r0 has not been implemented (replacing index_type with size_type) HOT 3
- Update constructors HOT 1
- Add versioning info in-source and in git HOT 3
- Latest C++20 draft has no cbegin/cend/crbegin/crend (anymore) HOT 1
- Linking problems with multiple translation units HOT 1
- Release HOT 2
- TCB_SPAN_THROW_ON_CONTRACT_VIOLATION makes this implementation non-conforming according to C++20 HOT 2
- Add .natvis file
- Compilation error caused by data() member HOT 11
- Cannot construct from std::array of const values HOT 1
- span type missing const_iterator member type HOT 1
- Compilation error when trying to emplace spans in a vector (while STL span works fine) HOT 1
- MINSIGSTKSZ cannot be used for constexpr variable HOT 2
- Can tcb::span be forward-declared safely?
- ‘terminate’ is not a member of ‘std’ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from span.