Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 create a typedef from a type
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jun 27 2008 :  11:28:05 AM  Show Profile  Reply with Quote
This is an interesting Snippet that came up recently on the forum.

Consider the code:

static void testGeneralCode()
{
	std::vector<int> foo;
}


and you want to create a typedef from the type. Select the type and use the following snippet:

typedef $selected$ $type_name$;
$type_name$ $end$


And you end up with:

static void testGeneralCode()
{
	typedef std::vector<int> TypeVectorInt;
	TypeVectorInt  foo;
}

zen is the art of being at one with the two'ness
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000