smart-pointers
C++ Reinforcement learning and smart pointers
I am doing my Masters project on robotic\'s sensorimotor online learning using reinforcement learning methods (Q,sarsa,TD(λ),Actor-Critic,R,etc). I am currently designing the framework on which both[详细]
2023-03-18 18:05 分类:问答References to boost::smart_ptr pointed to object and checking their validity
Given the following: class Curve { public: typedef boost::shared_ptr<Curve> Pointer; // ... private:[详细]
2023-03-15 20:55 分类:问答Which is faster on Visual C++ 2010 - std::shared_ptr or boost::shared_ptr?
Has anyo开发者_StackOverflow社区ne tested this in release mode builds? Or are the implementations so similar there\'s no significant difference?[详细]
2023-03-15 11:10 分类:问答how this auto_ptr program works and what it does?
I ran this program but I didn\'t get what this auto_ptr does and 开发者_Go百科on which basics it shows the values?[详细]
2023-03-09 03:28 分类:问答Usage of Smart Pointers as a Programming Standard?
More and more I hear, that I should use smart pointers instead of naked pointers, despite I have effective memory leak system implemented.[详细]
2023-03-09 01:02 分类:问答Any hit for dereferencing std::tr1:shared_ptr vs. dereferencing a naked pointer?
I realize that there is a (Sometimes significant) performance hit for creating, assigning, copying, and destroying a std::tr1::shared_ptr or boost::shared_ptr (due to the reference counting mechanisms[详细]
2023-03-07 01:09 分类:问答c++: Loki StrongPtr looks unsafe to me, is that so?
I am currently looking at the most popular smart Ptr implementations such as boost shared and weak pointers aswell as loki Smart and Strong pointer 开发者_如何学Pythonsince I want to implement my own[详细]
2023-03-03 00:11 分类:问答Is this a valid use of intrusive_ptr?
Within my code I follow two rules when it comes to intrusive_ptrs: Passing a raw pointer by value implies that the raw pointer is guaranteed to be valid during the lifetime of that function.[详细]
2023-02-27 11:34 分类:问答Why I cant return Boost::Scoped_ptr from function?
So I try to create some wrapper around boost.extension functions for class creation. So Ihave created a function:[详细]
2023-02-26 22:01 分类:问答Boost shared_ptr: using unique() to implement copy on write
Could someone explain what boost shared_ptr manual means by this: If yo开发者_如何学JAVAu are using unique() to implement[详细]
2023-02-26 13:34 分类:问答
加载中,请稍侯......