<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: pointer in stl vector? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/pointer-in-stl-vector/m-p/3473419#M4733</link>
    <description>Bessel, Welcome to the hp itrc VMS Forum. What version of VMS and what version of the C++ compiler are you using?</description>
    <pubDate>Fri, 28 Jan 2005 06:08:17 GMT</pubDate>
    <dc:creator>Ian Miller.</dc:creator>
    <dc:date>2005-01-28T06:08:17Z</dc:date>
    <item>
      <title>pointer in stl vector?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pointer-in-stl-vector/m-p/3473418#M4732</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I want to use the STL container class "vector" and I want to store in it objects of a specific type that I have created. Is it better to store pointers to my objects inside the vector or is it better to store the objects themselves?&lt;BR /&gt;&lt;BR /&gt;thanx</description>
      <pubDate>Fri, 28 Jan 2005 06:01:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pointer-in-stl-vector/m-p/3473418#M4732</guid>
      <dc:creator>Bassel Salhab</dc:creator>
      <dc:date>2005-01-28T06:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: pointer in stl vector?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pointer-in-stl-vector/m-p/3473419#M4733</link>
      <description>Bessel, Welcome to the hp itrc VMS Forum. What version of VMS and what version of the C++ compiler are you using?</description>
      <pubDate>Fri, 28 Jan 2005 06:08:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pointer-in-stl-vector/m-p/3473419#M4733</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-01-28T06:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: pointer in stl vector?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pointer-in-stl-vector/m-p/3473420#M4734</link>
      <description>Bassel,&lt;BR /&gt;&lt;BR /&gt;First, welcome to the VMS forum.&lt;BR /&gt;&lt;BR /&gt;Store pointers or objects, depends on yours implementation. You must know that, when you store an object in the vector, you realy store a copy of the object (the copy constructor CLASS (const CLASS &amp;amp;) is called) and when you remove an object in the midle of the vector the copy assignement operator (CLASS &amp;amp; operator = (const CLASS &amp;amp;))is called for objects which are stored after the removed object. If you store the same object more times in a vector or store the object in two different vectors, these are not the same objects, but copyes of the object.&lt;BR /&gt;(CLASS is meant as yours class)&lt;BR /&gt;&lt;BR /&gt;When working with pointers, only pointers are moved and they always point to the same object.&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Sat, 29 Jan 2005 05:57:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pointer-in-stl-vector/m-p/3473420#M4734</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2005-01-29T05:57:53Z</dc:date>
    </item>
  </channel>
</rss>

