Skip navigation.

CORBA Programming Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

 


CORBA::Any & CORBA::Any::operator=(const CORBA::Any & InitAny)

Synopsis

Any assignment operator.

C++ Binding

CORBA::Any & CORBA::Any::operator=(const CORBA::Any & InitAny) 

Arguments

InitAny

A reference to an Any to use in the assignment. The Any to use in the assignment determines whether the Any assumes ownership of the memory in Value. If Release is CORBA_TRUE, the Any assumes ownership and deep-copies the InitAny argument's value; if Release is CORBA_FALSE, the Any shallow-copies the InitAny argument's value.

Description

This is the assignment operator for the Any class. Memory management of this member function is determined by the current value of the Release flag. The current value of the Release flag determines whether the current memory is released before the assignment. If the current Release flag is CORBA_TRUE, the Any releases any value previously held; if the current Release flag is CORBA_FALSE, the Any does not release any value previously held.

Return Values

Returns the Any, which holds the copy of the InitAny.

 

Skip navigation bar  Back to Top Previous Next