A long time ago, STL had auto_ptr<Type> class that automatically deleted a dynamically allocated C++ object when control leaves a block. Personally, I believe that auto_ptr<Type> was typically used in simple scenarios as a local variable or a class member but theoretically it is even possible to declare a vector of auto_ptr<Type> because auto_ptr<Type> stores an ownership indicator and its copy constructor transfers the ownership from the instance being copied, so vector::push_back(…) and vector::resize(…) functions works correctly.
Categories
- App Stores (2)
- Apple App Store (2)
- Google Play (1)
- CMS (18)
- Cryptocurrencies (40)
- Databases (22)
- Development environments (14)
- Graphics (21)
- Hardware (15)
- Motherboards (3)
- PSU (1)
- Video cards (9)
- Network and Internet (4)
- Operating Systems (183)
- Platforms and frameworks (131)
- Programming languages (108)
- Uncategorized (5)
- Web Servers (12)
- App Stores (2)
Tag Cloud
Recent Comments
- dmitriano on Upgrading my Joomla website from 4 to 5
- dmitriano on Upgrading my Joomla website from 4 to 5
- dmitriano on Upgrading my Joomla website from 4 to 5
- dmitriano on Upgrading my Joomla website from 4 to 5
- dmitriano on Running Asterisk 22 in a Docker container