tr1
How to make tr1::array allocate aligned memory?
You can allocate a std::vector which allocates aligned heap memory by defining your own allocator. You can allocate a c-style array on the stack using declspec align.开发者_运维百科[详细]
2023-01-13 04:33 分类:问答.NET Interop and TR1 shared_ptr
How is it possible to marshal a shared_ptr from unmanaged C++ code into C#? I have a function in C++ (exposed through C bindings) that will allocate a new MyObject and return a pointer to i开发者_如何[详细]
2023-01-12 13:39 分类:问答On the initialization of std::array [duplicate]
This question already has answers here: Initialize std::array with a range (pair of iterators) (3 answers)[详细]
2023-01-08 23:39 分类:问答Cannot order weak_ptr's in in VS10
I can not get \'operator <\' to compile for a weak_ptr using VS10. Am I missing an #include or #using?[详细]
2023-01-08 04:51 分类:问答std::tr1::function and std::tr1::bind
I have a problem using a very complicated C function in a C++ class (rewriting the C function is not an option). C function:[详细]
2023-01-07 18:10 分类:问答Portable way to use shared_ptr in GCC
GCC 4.1 uses the开发者_运维知识库 <tr1/memory> header and GCC 4.3 uses <memory> header, I need a portable way to use shared_ptr with GCC 4.3.2 and with GCC 4.2.1, is there any way to do th[详细]
2023-01-06 08:16 分类:问答Difference between std::tr1::array and boost::array
I was under the impression that std::tr1::array was the same as the boost::array in that it would throw an exception when accessing an index out of bounds. In fact, I took a peek in theheader and it a[详细]
2023-01-04 06:33 分类:问答Why is std::tr1::shared_ptr<>.reset() so expensive?
Profiling some code that heavily uses shared_ptrs, I discovered that reset() was surprisingly expensive.[详细]
2023-01-03 18:02 分类:问答Is there a sane default for std::tr1::function?
I spent some time googling but didn\'t really find anything.I want to be able to do this: std::tr1::function<void()> foo(SOME_DEFAULT_FUNCTION_THAT_DOES_NOTHING);[详细]
2023-01-02 00:37 分类:问答Are tr1 headers available for gcc v3.4.6?
Are tr1 headers available for g++ v3.4.6?If so, how can I locate them at co开发者_StackOverflow中文版mpile time.[详细]
2022-12-31 10:15 分类:问答