From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (unknown [IPv6:2602:4b:a4d8:4b00:12bf:48ff:fe7c:5584]) by hurricane.the-brannons.com (Postfix) with ESMTPSA id 2709078050 for ; Sat, 1 Feb 2014 14:25:55 -0800 (PST) From: Chris Brannon To: edbrowse-dev@lists.the-brannons.com References: <20140101165809.eklhad@comcast.net> Date: Sat, 01 Feb 2014 14:25:28 -0800 In-Reply-To: <20140101165809.eklhad@comcast.net> (Karl Dahlke's message of "Sat, 01 Feb 2014 16:58:09 -0500") Message-ID: <8738k2jwrr.fsf@mushroom.PK5001Z> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Edbrowse-dev] tags[] encapsulation X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Feb 2014 22:25:55 -0000 Karl Dahlke writes: > Chris used the list class, but I'm thinking more about the vector class. Sounds like the way to go. I hadn't realized that vector completely removes the need for that temporary data structure! Also, don't worry about pushing elements onto the end. It's very efficient (constant time), and it doesn't call realloc on every push. It doubles the capacity with each realloc, though I'm sure that's an implementation detail of GNU's STL. -- Chris