never executed always true always false
    1 {-# language CPP #-}
    2 
    3 #ifndef ENABLE_INTERNAL_DOCUMENTATION
    4 {-# OPTIONS_HADDOCK hide #-}
    5 #endif
    6 
    7 module OpenCV.Internal.C.PlacementNew ( PlacementNew(..) ) where
    8 
    9 import "base" Foreign.Ptr ( Ptr )
   10 
   11 --------------------------------------------------------------------------------
   12 
   13 -- | Copy source to destination using C++'s placement new feature
   14 class PlacementNew a where
   15     -- | Copy source to destination using C++'s placement new feature
   16     --
   17     -- This method is intended for types that are proxies for actual
   18     -- types in C++.
   19     --
   20     -- > new(dst) CType(*src)
   21     --
   22     -- The copy should be performed by constructing a new object in
   23     -- the memory pointed to by @dst@. The new object is initialised
   24     -- using the value of @src@. This design allow underlying
   25     -- structures to be shared depending on the implementation of
   26     -- @CType@.
   27     placementNew
   28         :: Ptr a -- ^ Source
   29         -> Ptr a -- ^ Destination
   30         -> IO ()
   31 
   32     placementDelete
   33         :: Ptr a
   34         -> IO ()