You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Sergey Marinkevich 2935b29e2e add iterable 5 months ago
.gitignore add iterable 5 months ago
Makefile add iterable 5 months ago
README.md add iterable 5 months ago
iterable add iterable 5 months ago
iterable.cc add iterable 5 months ago
iterators.h add iterable 5 months ago
main.h add iterable 5 months ago
raw_ptr.cc add iterable 5 months ago
smart_ptr.cc add iterable 5 months ago

README.md

Wrappers and iterators examples

Build and run:

make

raw_ptr.cc

Simply raw pointer wrapper. Shows how we can do an object abilities extension in the runtime. Useful for iterators.

smart_ptr.cc

Similar example, but holds the shared pointer.

iterable.cc

Finally, the iterable with traversing algorithm compile-time instantiated. The template method returns an iterable object, which iterates over IShape's with its .get_next()/.get_prev().