Raised This Month: $ Target: $400
 0% 

Copying Trie contents


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-15-2013 , 12:38   Copying Trie contents
Reply With Quote #1

What's the easiest way to copy the contents of A trie to B trie? Simply using the = operator will copy the trie ID which is useless since both variables will edit the same trie.

Is there nothing better than a loop?
Backstabnoob is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-15-2013 , 13:05   Re: Copying Trie contents
Reply With Quote #2

What is listed in celltrie.inc is what you get. Also, you can't loop through a trie (as far as I know) unless you know all of the keys.
__________________

Last edited by fysiks; 05-15-2013 at 13:05.
fysiks is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-15-2013 , 13:05   Re: Copying Trie contents
Reply With Quote #3

It sounds like a XY problem. What are you trying to do exactly ?
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode