Right now, one can only create such an object pointing to a specific
array. It is not possible to default construct it, and consequently
you can't put them into collections, for example.
*/
typedef ElementType value_type;
+ /**
+ * Default constructor. Creates an invalid view that does not point to
+ * anything at all.
+ */
+ ArrayView ();
+
/**
* Constructor.
*
//---------------------------------------------------------------------------
+template <typename ElementType>
+inline
+ArrayView<ElementType>::ArrayView()
+ :
+ starting_element (NULL),
+ n_elements(0)
+{}
+
+
+
template <typename ElementType>
inline
ArrayView<ElementType>::ArrayView(value_type *starting_element,
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams