Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 create a typedef from a type

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
feline Posted - Jun 27 2008 : 11:28:05 AM
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;
}

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000