From: EGarrulo <egarrulo@gmail.com>
Subject: Getting types from a generic container in Ada?
Date: Sat, 25 Jul 2015 23:08:33 -0700 (PDT)
Date: 2015-07-25T23:08:33-07:00 [thread overview]
Message-ID: <dced2b52-e946-4795-9033-d37cc8c69561@googlegroups.com> (raw)
I would like to write a generic package that operates on standard containers. Such package would need access to various properties of a container, and I would like to get them from the container itself, instead of passing them as parameters for the generic package. In other words, I would like to write something like:
generic
type Container_Type is private;
package My_Package is
procedure My_Function (Container : in out Container_Type;
Element : Container_Type.Element_Type);
end My_Package;
Is this possible? Thank you.
next reply other threads:[~2015-07-26 6:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-26 6:08 EGarrulo [this message]
2015-07-26 17:36 ` Getting types from a generic container in Ada? Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox