Skip to content

Add C++98 compatible free functions first() etc. taking a span #67

@martinmoene

Description

@martinmoene

Continuation of #65 .

Add C++98 compatible free functions first() etc. taking a span<T,Extent>, such as:

template< extent_t Count, class T, extent_t Extent >
span_constexpr span<T, Count>
first( span<T, Extent> spn );

template< class T, extent_t Extent >
span_constexpr span<T>
first( span<T, Extent> spn, size_t count );

Add configuration macros:

span_FEATURE_NON_MEMBER_FIRST_LAST_SUB_SPAN
span_FEATURE_NON_MEMBER_FIRST_LAST_SUB_CONTAINER

Let span_FEATURE_NON_MEMBER_FIRST_LAST_SUB=1 activate both.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions