X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Fparray.hh;h=619532bbed690abc16190bf9a05987f7c2c08f8a;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=ed120740558fa0cd1ceda63bb8ecfa24cabae87e;hpb=52102901e53611ad7bad111c2f9d414d2e593bc3;p=lilypond.git diff --git a/flower/include/parray.hh b/flower/include/parray.hh index ed12074055..619532bbed 100644 --- a/flower/include/parray.hh +++ b/flower/include/parray.hh @@ -3,32 +3,21 @@ source file of the Flower Library - (c) 1997 Han-Wen Nienhuys + (c) 1997--2008 Han-Wen Nienhuys */ - #ifndef PARRAY_HH #define PARRAY_HH -#include "varray.hh" +#include "std-vector.hh" + +using namespace std; template -class Pointer_array : public Array +class Link_array : public vector { -public: - int find_i (T t) const{ - for (int i=0; i < size(); i++) - if (elem(i) == t) - return i; - return -1; - } - T find_l(T t)const - { - int i = find_i(t); - if (i >= 0) - return elem(i); - else - return 0; - } + }; + #endif // PARRAY_HH +