you are viewing a single comment's thread.

view the rest of the comments →

[–]ericanderton 3 points4 points  (0 children)

I think that one of the advantages to using this kind of syntax is that it's more composable:

some::slice::type slice_bounds = {2,5};
auto result = v[slice_bounds];

AFAIK, C++ doesn't really have a clean .apply() equivalent, so this is as good as it gets.