Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

NTL and standard library

While NTL is kind of "alien technology" with respect to C++ standard library, in fact it is largely inter-operable with it.

Iterators

Each NTL container (with exception of One) provides iterator access. All iterators satisfy STL requirements for random access iterators. This also means that most of STL (and STL based) algorithms can be used with NTL containers.

auto_ptr

Funny part about standard library and NTL relationship is that any known (and imaginable) implementation of auto_ptr is moveable - so you can store it into any flavor of containers. All you need to do is to mark an instantiation with the Moveable template.

Even better is that you do not need Vector of auto_ptr - because Array flavor will do the same job more comfortably.

 

Do you want to contribute?