Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
std::vector
Original author @chpatrick https://github.com/fpco/inline-c/blob/1ba35141e330981fef0457a1619701b8acc32f0b/inline-c-cpp/test/StdVector.hs
Documentation
instanceStdVector :: String -> DecsQ Source #
data CStdVector a Source #
Instances
HasStdVector a => HasEncapsulation (CStdVector a) (StdVector a) Source # | |
Defined in Hercules.CNix.Std.Vector moveToForeignPtrWrapper :: Ptr (CStdVector a) -> IO (StdVector a) Source # |
StdVector (ForeignPtr (CStdVector a)) |
Instances
HasStdVector a => HasEncapsulation (CStdVector a) (StdVector a) Source # | |
Defined in Hercules.CNix.Std.Vector moveToForeignPtrWrapper :: Ptr (CStdVector a) -> IO (StdVector a) Source # |
fromListFP :: (Coercible a' (ForeignPtr a), HasStdVector a) => [a'] -> IO (StdVector a) Source #
pushBackFP :: (Coercible a' (ForeignPtr a), HasStdVector a) => StdVector a -> a' -> IO () Source #