diff options
author | Adrian Thurston <thurston@colm.net> | 2019-09-11 19:02:07 -0600 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2019-09-11 19:02:07 -0600 |
commit | b6c54b035748e5733f279e9bd763870f4e9267da (patch) | |
tree | 8e98185fe9690b1958d3999a3ea1c96539c01f27 /doc/aapl/ex_dlistval.cpp | |
parent | 26315e09ed7c87589a4304b98e5814d373596097 (diff) | |
download | colm-b6c54b035748e5733f279e9bd763870f4e9267da.tar.gz |
moved aapl and ragel doc dirs to /doc
Diffstat (limited to 'doc/aapl/ex_dlistval.cpp')
-rw-r--r-- | doc/aapl/ex_dlistval.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/aapl/ex_dlistval.cpp b/doc/aapl/ex_dlistval.cpp new file mode 100644 index 00000000..26d05097 --- /dev/null +++ b/doc/aapl/ex_dlistval.cpp @@ -0,0 +1,17 @@ +#include "dlistval.h" + +int main() +{ + DListVal<int> list; + list.append( 1 ); + list.append( 2 ); + list.append( 3 ); + + DListVal<int>::Iter it = list; + while ( it.lte() && it->value != 2 ) + it++; + + list.remove( it.ptr ); + + return 0; +} |