2013-08-27 19:17:17 +02:00
|
|
|
.. highlight:: c
|
|
|
|
|
|
|
|
.. _arr_rebind:
|
|
|
|
|
|
|
|
rebind
|
|
|
|
==================================
|
|
|
|
|
2013-09-18 15:13:23 +02:00
|
|
|
* **Synopsis** for X_view (X=array, matrix, vector):
|
2013-08-27 19:17:17 +02:00
|
|
|
|
|
|
|
.. cpp:function:: void rebind(array_view const & a)
|
|
|
|
|
2013-09-18 15:13:23 +02:00
|
|
|
* **Synopsis** for X_const_view (X=array, matrix, vector):
|
|
|
|
|
|
|
|
.. cpp:function:: void rebind(array_view const & a)
|
|
|
|
.. cpp:function:: void rebind(array_const_view const & a)
|
|
|
|
|
|
|
|
* **Effect** :
|
|
|
|
|
2013-08-27 19:17:17 +02:00
|
|
|
Rebinds the view
|
|
|
|
|
2013-09-18 15:13:23 +02:00
|
|
|
After this method, the view points to the same as *a*.
|
2013-08-27 19:17:17 +02:00
|
|
|
Following the :ref:`memory management rules <arr_view_memory>`, if nothing else views the
|
|
|
|
data originally pointed to by the view, this data is destroyed.
|
|
|
|
|
|
|
|
|