forward_list

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

forward_list

Orient
C++14 provides std::forward_list, but Boost.Spirit X3 does not. How to make a feature request? "Issues" page is disabled on github.com/boostorg/spirit page.
Reply | Threaded
Open this post in threaded view
|

Re: forward_list

Mike Gresens
Hi Orient,

Spirit uses containers to append parsed element(s) to the END of the containers.

But std::forward_list has no push_back() and no insert() methods.
Appending elements the the end of std::forward_list has a complexity O(N).

For that reason I think you don't want to use std::forward_list in Spirit ;-)

Best regards,
Mike...