NAME

OTC_CopyActions - Default method for copying arrays.

SYNOPSIS


#include <OTC/collctn/copyactn.hh>

template<class T>
class OTC_CopyActions
{
  public:
    static void copy(T* theDest, T const* theSrc, size_t theLength);
};

CLASS TYPE

Static

DESCRIPTION

This class encapsulates the default method used for copying arrays. The default method may be overridden for a type by providing a template override class for that type. An override version of the class is provided for the type char. The override version in this case used a version of memcpy() which copies four bytes at a time.

PUBLIC MEMBERS

static void copy(T* theDest, T const* theSrc, size_t theLength);

LIBRARY

OTC

AUTHOR(S)

Graham Dumpleton

COPYRIGHT

Copyright 1993 TELSTRA CORPORATION LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED