ranges: Add size() and empty() functions as well as additional constructors by stotko · Pull Request #122 · stotko/stdgpu (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation1 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@stotko

The API of the ranges module, which aims to model the C++20 ranges library in a significantly simplified yet still useful manner, is still rather limited. Add additional constructors to host_range, device_range and transform_range as well as size() and empty() functions and some typedefs. Furthermore, replace the non-const begin() and end() functions with equivalent const versions and implicitly deprecate the non-const ones. This is a small step towards a more useful ranges module.

@stotko

@codecov

@stotko stotko deleted the ranges_interface branch

March 25, 2020 18:12

Labels

2 participants

@stotko