ExtUti...:Vector(3pm)
π NAME π
okay so bestie, this page is all about ExtUtils::Typemaps::STL::Vector β a whole set of typemaps for STL std::vectors. slay.
β¨ SYNOPSIS β¨
use ExtUtils::Typemaps::STL::Vector;
# First, read my own type maps:
my $private_map = ExtUtils::Typemaps->new(file => 'my.map');
# Then, get the object map set and merge it into my maps
$private_map->merge(typemap => ExtUtils::Typemaps::STL::Vector->new);
# Now, write the combined map to an output file
$private_map->write(file => 'typemap');
π¦ DESCRIPTION π¦
ExtUtils::Typemaps::STL::Vector is an ExtUtils::Typemaps subclass, and it provides a set of mappings for C++ STL vectors. These are:
TYPEMAP
std::vector<double> T_STD_VECTOR_DOUBLE
std::vector<double>* T_STD_VECTOR_DOUBLE_PTR
std::vector<int> T_STD_VECTOR_INT
std::vector<int>* T_STD_VECTOR_INT_PTR
std::vector<unsigned int> T_STD_VECTOR_UINT
std::vector<unsigned int>* T_STD_VECTOR_UINT_PTR
std::vector<std::string> T_STD_VECTOR_STD_STRING
std::vector<std::string>* T_STD_VECTOR_STD_STRING_PTR
std::vector<char*> T_STD_VECTOR_CSTRING
std::vector<char*>* T_STD_VECTOR_CSTRING_PTR
All of these mean the vectors get converted to references to Perl arrays and vice versa. literally iconic π
π METHODS π
These are the overridden methods:
πΈ new
Creates a new ExtUtils::Typemaps::STL::Vector object. It acts as any other ExtUtils::Typemaps object, except that it has the vector type maps initialized. main character energy, honestly β¨
π₯ SEE ALSO π₯
ExtUtils::TypemapsExtUtils::Typemaps::DefaultExtUtils::Typemaps::ObjectMapExtUtils::Typemaps::STLExtUtils::Typemaps::STL::String
π AUTHOR π
Steffen Mueller <smueller@cpan.org>
π COPYRIGHT AND LICENSE π
Copyright 2010, 2011, 2012, 2013 by Steffen Mueller
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie β brought to you by perl v5.36.0, dated 2022-10-21. mwah ππ«Ά
π¦ where this page comes from
- ubuntu noble: libextutils-typemaps-default-perl 1.05-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libextutils-typemaps-default-perl 1.05-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libextutils-typemaps-default-perl 1.05-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms