typetraits
C++ : how do I use type_traits to determine if a class is trivial?
In C++0x, I would like to determine if a class is trivial/has standard layout so I can use memcpy(), memset(), etc...[详细]
2023-04-10 05:28 分类:问答Is it possible to use type traits to check whether a type is a container?
Can I use C++ Type Traits to check i开发者_JAVA百科f a type is an STL-like container? I already know of GCC\'s builtin __is_class but I would like to be a bit more specific if possible.You could build[详细]
2023-04-10 01:16 分类:问答C++ Type Traits Overview [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-04-09 22:49 分类:问答C++: Using inner typedef if available in traits class or default
I\'m currently writing a template that operates differently based on the category of the input. There are 3 cases I\'m looking to add to my traits class.[详细]
2023-03-31 08:45 分类:问答Is there a compile-time func/macro to determine if a C++0x struct is POD?
I\'d like to have a C++0x stati开发者_如何转开发c_assert that tests whether a given struct type is POD (to prevent other programmers from inadvertently breaking it with new members). ie,[详细]
2023-03-30 20:24 分类:问答Type trait for moveable types?
I\'m tryin开发者_StackOverflow中文版g to write a template that behaves one way if T has a move constructor, and another way if T does not.I tried to look for a type trait that could identify this but[详细]
2023-03-27 19:14 分类:问答How to find, from which Types is object composed of?
ok, yesterday I posted almost identical question here , but I wasn\'t able to modify the answer(working) to my needs... I did not want to mess the other topic, so I have started new one.[详细]
2023-03-27 06:52 分类:问答Iterating through collection of different types in C++
Situation I have a template class TIppImage<T> for image of type T. I have singleton class CIppMemoryManager which can store a number of images of different size and type.[详细]
2023-03-23 09:42 分类:问答What kind of "Traits" are used/defined in the C++0x Standard
A trait in C++ encapsulates a family of operations that allow an Algorithm or Data Structure to operator with that type with which it is instantiated. char_traits are an example for grouping string- a[详细]
2023-03-20 23:08 分类:问答Is it possible to use type_traits to differentiate between char & wchar_t?
I am trying to write a function that can handle both char & wchar_t using the type_traits feature of C++0x. Yes, I know how to do it without type_traits, but I want to do it using type_tra开发者_P[详细]
2023-03-18 10:06 分类:问答