blob: eed8e116fbebf1bc72b2c67d4f18e64c79a813d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// file : xsde/cxx/hybrid/sequence.cxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
#include <xsde/cxx/hybrid/sequence.hxx>
namespace xsde
{
namespace cxx
{
namespace hybrid
{
//
// data_sequence
//
void data_sequence::
clear ()
{
if (destructor_)
{
for (size_t i = 0; i < size_; ++i)
destructor_ (static_cast<void**> (data_)[i], i);
}
size_ = 0;
}
}
}
}
|