Giter Site home page Giter Site logo

header pollution about span HOT 6 OPEN

tcbrindle avatar tcbrindle commented on June 27, 2024
header pollution

from span.

Comments (6)

tcbrindle avatar tcbrindle commented on June 27, 2024

Agreed, byte should be in the detail namespace

from span.

Xeverous avatar Xeverous commented on June 27, 2024

Note if you missed: byte is one among many such aliases.

from span.

tcbrindle avatar tcbrindle commented on June 27, 2024

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.

Xeverous avatar Xeverous commented on June 27, 2024

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.

tcbrindle avatar tcbrindle commented on June 27, 2024

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.

Xeverous avatar Xeverous commented on June 27, 2024

Looks like there is nothing more then.

from span.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.