MCPcopy Create free account
hub / github.com/davisking/dlib / add

Method add

dlib/sequence/sequence_kernel_c.h:74–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 typename seq_base
73 >
74 void sequence_kernel_c<seq_base>::
75 add(
76 unsigned long pos,
77 T& item
78 )
79 {
80
81 // make sure requires clause is not broken
82 DLIB_CASSERT(( pos <= this->size() ),
83 "\tvoid sequence::add"
84 << "\n\tpos must be >= 0 and <= size()"
85 << "\n\tpos: " << pos
86 << "\n\tsize(): " << this->size()
87 << "\n\tthis: " << this
88 );
89
90 // call the real function
91 seq_base::add(pos,item);
92 }
93
94// ----------------------------------------------------------------------------------------
95

Callers

nothing calls this directly

Calls 2

addFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected