How to know if opSlice is defined for a type (including built-in types)?

chardetm via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 20 05:06:00 PST 2016


Anyone who has the same problem: I found 
std.range.primitives.hasSlicing 
(https://dlang.org/phobos/std_range_primitives.html#hasSlicing) 
which does exactly what I want!


More information about the Digitalmars-d-learn mailing list