comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: How to access Vector.Index_Type?
Date: Sun, 17 Mar 2019 21:17:04 -0700 (PDT)
Date: 2019-03-17T21:17:04-07:00	[thread overview]
Message-ID: <a9361f0f-9bee-45a5-a273-098d42f60012@googlegroups.com> (raw)
In-Reply-To: <a0a952ea-0eb7-4129-8c19-87c9f4c7db2d@googlegroups.com>

>         package MyVec is new Ada.Containers.Vectors(Natural, Natural);
>         Var : MyVec.Index_Type;

Try:
  subtype My_Index is Natural;
  subtype My_Element is Natural;
  package MyVec is new Ada.Containers.Vectors(My_Index, My_Element);
  Var : My_Index; 


  parent reply	other threads:[~2019-03-18  4:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-17 20:43 How to access Vector.Index_Type? jakub.dabek
2019-03-17 21:25 ` Simon Wright
2019-03-18  0:12   ` jakub.dabek
2019-03-18  8:21     ` Simon Wright
2019-03-18  4:17 ` gautier_niouzes [this message]
2019-03-18  5:27 ` J-P. Rosen
2019-03-18  8:31   ` Dmitry A. Kazakov
2019-03-18 20:59     ` briot.emmanuel
2019-03-18 23:01       ` J-P. Rosen
2019-03-18 19:35 ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox