company logo

GlobalVariable :: remove - Remove global variable

Removing a global variable will remove the variable only for the current thread.

// fragment

  GlobalVariable  userName("userName");

  if ( userName.exist() )

    userName.remove();

Implementation details

GlobalVariable  :: remove (  )

The function removes the global variable from the list of global variables. When the global variable does not exist, the function throws an exception.

// fragment

  GlobalVariable  userName("userName");

  if ( userName.exist() )

    userName.remove();