diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-11-03 18:33:08 +0100 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-11-03 18:41:18 +0100 |
commit | 3950ee0433aaed3c35eaee7548bae5b00ee22a80 (patch) | |
tree | 92b0583828d33849b7cc622ae5fed1fb4ce02010 /docs/samples/traverse_predicate.cpp | |
parent | 97a515f8733d9555278b6eb3f3dc244a9580c308 (diff) |
XPath: Refactor predicate application
Split number/boolean filtering logic into two functions. This creates an
extra copy of a remove_if-like algorithm, but moves the type check out of
the loop and results in better organized filtering code.
Consolidate test-based dispatch into apply_predicate (which is now a member
function).
Diffstat (limited to 'docs/samples/traverse_predicate.cpp')
0 files changed, 0 insertions, 0 deletions