473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to use typelist?

I dont know how to use typelist.

Sep 25 '06 #1
3 2585

Is********@gmail.com wrote:
I dont know how to use typelist.
Well, what would you like to use it for?

Refer to Alexandrescu's 'Modern C++ Design' for a good description.

Jeff

Sep 25 '06 #2

Jeff Faust wrote:
Is********@gmail.com wrote:
I dont know how to use typelist.

Well, what would you like to use it for?

Refer to Alexandrescu's 'Modern C++ Design' for a good description.

Jeff
I'm read this book now.

Sep 25 '06 #3

Is********@gmail.com wrote:
Jeff Faust wrote:
Is********@gmail.com wrote:
I dont know how to use typelist.
Well, what would you like to use it for?

Refer to Alexandrescu's 'Modern C++ Design' for a good description.

Jeff

I'm read this book now.
A typelist is a mechanism to group types together. You could use this
to perform compile-time checks based on what typelist a particular type
belongs to. I've also used a typelist implementation to create a
type-maintaining linked-list structure.

Alexandrescu also uses typelists to create a "ad hoc visitor".

Jeff

Sep 25 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
0
by: Jon Slaughter | last post by:
struct NullClass { void Null() { } }; template <unsigned int i, typename T> struct Node { enum {I = i}; typedef T Class; };
1
by: Krivenok Dmitry | last post by:
Hello All! I have read about Loki's Typelist in "Modern C++ Design". Great idea! But this chapter of book describes only three example of Typelist usage (GenScatterHierarchy, GenLinearHierarchy...
0
by: Dave Branton | last post by:
Hi, I've been using Loki-style typelists extensivley in my code for a while now, and have found them extremely useful, although somewhat annoying to specify due to all the close angle brackets...
2
by: Marco Wedekind | last post by:
Hello all, I've just read about typelists and their implementation in C++ using templates in http://www.ddj.com/dept/cpp/184403813. Now my very first test code using typelists does not...
1
by: ares.lagae | last post by:
- I have a typelist and I want to declare a member variable for each of the types. How can I do that? E.g. I have the typelist "typedef boost::mpl::vector<int, float> types;" and I want to declare...
2
by: Dom Jackson | last post by:
Hello - I have a problem where I need to test some numeric code using a variety of built-in integer types: obj_type1 = obj_type2 OP obj_type3; // is obj_type1 correct? If I test with 10...
4
by: Alan Woodland | last post by:
I've been trying out more template metaprogramming ideas with typelists (mostly for personal learning, I'm aware boost most probably provides this facility already), and I've run into this small...
4
by: suman.nandan | last post by:
Hi C++ Experts ! I have a little weird requirement. I have a base class, say B and lots of classes D1 .. Dn publicly derived from it. Over the course of development the number of derived...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.