Skip to content

Sort test: check type requirements conformance (device policies) #2103

Open
@dmitriy-sobolev

Description

@dmitriy-sobolev

Summary:

C++ standards sets these type preconditions:

Preconditions: For the overloads in namespace std, RandomAccessIterator meets the Cpp17ValueSwappable requirements ([swappable.requirements]) and the type of *first meets the Cpp17MoveConstructible (Table 31) and Cpp17MoveAssignable (Table 33) requirements.

Sort tests do not check if it is sufficient when using a device policy (for example, it does not require CopyConstructible). This check is needed.

There is a TODO in the test:

// TODO: add a test for a MoveConstructible only type

Metadata

Metadata

Assignees

No one assigned

    Labels

    testTest only Change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions