Opened 10 years ago

Last modified 10 years ago

#7597 new Feature Requests

transform_output_iterator

Reported by: louis.dionne92@… Owned by: jeffrey.hellrung
Milestone: To Be Determined Component: iterator
Version: Boost Development Trunk Severity: Not Applicable
Keywords: iterator transform transform_output transform_output_iterator Cc:

Description

Hello,

This ticket is related to the proposal that I made in the mailing list some weeks ago. The proposal is about adding a new iterator, the transform_output_iterator (initially called chained_output_iterator). Please see the code, unit tests and documentation attached for details. Everything is also available on github: github.com/ldionne/boost-submissions

I was not able to generate the documentation as a whole, so only the rst documents are attached. Please do not hesitate to contact me for any issues/comments.

Thanks,

Louis Dionne

Note: Regarding the mean for composing iterators (using the and_then method), I am open for discussion if another solution would be more desirable. However, this is the result of several attempts to reduce the requirements on the UnaryFunction type and it is the only way I found not to require UnaryFunction to have member typedefs.

Attachments (5)

transform_output_iterator.hpp (4.9 KB ) - added by louis.dionne92@… 10 years ago.
implementation
transform_output_iterator_test.cpp (4.8 KB ) - added by louis.dionne92@… 10 years ago.
unit test
transform_output_iterator.rst (7.9 KB ) - added by louis.dionne92@… 10 years ago.
documentation
transform_output_iterator_test.2.cpp (5.6 KB ) - added by Louis Dionne <louis.dionne92@…> 10 years ago.
unit test - added a test case so use this one instead
transform_output_iterator.2.hpp (4.9 KB ) - added by Louis Dionne <louis.dionne92@…> 10 years ago.
use disable_if<> instead of enable_if<not_<>>. Please use this one instead.

Download all attachments as: .zip

Change History (8)

by louis.dionne92@…, 10 years ago

implementation

by louis.dionne92@…, 10 years ago

unit test

by louis.dionne92@…, 10 years ago

documentation

comment:1 by Louis Dionne <louis.dionne92@…>, 10 years ago

I am unable to attach the new index.rst because it contains links to external content and is being flagged as potential spam when I try to upload it. Please refer to the index.rst in the github repository.

comment:2 by Louis Dionne <louis.dionne92@…>, 10 years ago

by Louis Dionne <louis.dionne92@…>, 10 years ago

unit test - added a test case so use this one instead

by Louis Dionne <louis.dionne92@…>, 10 years ago

use disable_if<> instead of enable_if<not_<>>. Please use this one instead.

comment:3 by Dave Abrahams, 10 years ago

Owner: changed from Dave Abrahams to jeffrey.hellrung
Note: See TracTickets for help on using tickets.