[Fusion] Can repetitive_view support "at" function?
I know it's a bit weird for asking repetitive_view which cannot model BidirectionalSequence to support the functionality of RandomAccessSequence, but it seems quite reasonable to support "at" when the underlying sequence models RandomAccessSequence even though repetitive_view cannot model RandomAccessSequence itself. Thoughts?
On 3/24/14, 10:06 PM, TONGARI J wrote:
I know it's a bit weird for asking repetitive_view which cannot model BidirectionalSequence to support the functionality of RandomAccessSequence, but it seems quite reasonable to support "at" when the underlying sequence models RandomAccessSequence even though repetitive_view cannot model RandomAccessSequence itself.
Thoughts?
I think it makes sense. Have you tried an implementation? Regards, -- Joel de Guzman http://www.ciere.com http://boost-spirit.com http://www.cycfi.com/
2014-03-25 10:30 GMT+08:00 Joel de Guzman
On 3/24/14, 10:06 PM, TONGARI J wrote:
I know it's a bit weird for asking repetitive_view which cannot model BidirectionalSequence to support the functionality of RandomAccessSequence, but it seems quite reasonable to support "at" when the underlying sequence models RandomAccessSequence even though repetitive_view cannot model RandomAccessSequence itself.
Thoughts?
I think it makes sense. Have you tried an implementation?
Not yet. I fallback to do the modulus myself. I worried that if you introduce concept check, the operation would be inhibited beforehand. Maybe a deficiency in current taxonomy.
participants (2)
-
Joel de Guzman
-
TONGARI J