<?xml version="1.0" encoding="utf-8" ?>
<XMLDocContent PageName="SupportLibraries.MarshalSupport.MarshalOut.assign" Title="assign method" xmlns="http://www.exodusemulator.com/schema/XMLDocSchema.xsd">
  <Section Title="Description">
    <Paragraph>
      This method is only available when marshalling <TypeRef>std::vector</TypeRef> objects, and provides equivalent functionality to one overload of the
      corresponding method on the native container as defined in the C++ standard. Other overloads are not currently provided, in particular ones that accept
      iterators to assign the contents of the collection to a range of supplied values, although these overloads may be added at a future time.
    </Paragraph>
  </Section>
  <Section Title="Usage:">
    <Code Language="C++"><![CDATA[void assign(size_type newSize, const ElementType& element) const]]></Code>
    <SubSection Title="Argument list">
      <ArgumentList>
        <ArgumentListEntry Name="newSize" Type="size_type">
          The number of elements to allocate in the bound collection
        </ArgumentListEntry>
        <ArgumentListEntry Name="element" Type="ElementType">
          The source object to marshal into each created entry in the bound collection
        </ArgumentListEntry>
      </ArgumentList>
    </SubSection>
  </Section>
  <Section Title="See also">
    <PageRefList>
      <PageRefListEntry PageName="SupportLibraries.MarshalSupport.MarshalOut">Marshal::Out</PageRefListEntry>
    </PageRefList>
  </Section>
</XMLDocContent>
