[GiNaC-devel] Mysterious push_front()
Jan Rheinländer
jrheinlaender at gmx.de
Wed Mar 2 18:55:56 CET 2022
Hi,
sometimes GiNaCs templates are a mystery to me. In container.h there is
the code
template<template<classT, class= std::allocator<T>> classC>
container<C> & container<C>::prepend(constex & b)
{
ensure_if_modifiable();
this->seq.push_front(b);
return*this;
}
but AFAIK the STL does not have any push_front() method. And GiNaC does
not seem to define it either. How can this work?
Same applies for pop_front() and sort()
voidsort_(std::input_iterator_tag)
{
this->seq.sort(ex_is_less());
}
Jan Rheinländer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ginac.de/pipermail/ginac-devel/attachments/20220302/ee3222fc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://www.ginac.de/pipermail/ginac-devel/attachments/20220302/ee3222fc/attachment.sig>
More information about the GiNaC-devel
mailing list